summaryrefslogtreecommitdiff
path: root/ide
diff options
context:
space:
mode:
authorIgor Murashkin <iam@google.com>2013-05-31 00:03:45 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2013-05-31 00:03:45 +0000
commitaf0a72b1faef4265b4415bdd01f8050234869aef (patch)
tree86d109cd515097b9811ba2c7fa491a7138151a47 /ide
parent1485d89205f611446c0e16acbead0d93757aee1d (diff)
parent52bb78b2d78896ffd8cc782ef9739e489ad84d7d (diff)
Merge "update eclipse C++ include paths and updated README for C++ instructions"
Diffstat (limited to 'ide')
-rw-r--r--ide/eclipse/README.importing-to-eclipse.txt27
-rw-r--r--ide/eclipse/android-include-paths.xml3
2 files changed, 30 insertions, 0 deletions
diff --git a/ide/eclipse/README.importing-to-eclipse.txt b/ide/eclipse/README.importing-to-eclipse.txt
index dffa0ab22..c98bf52e5 100644
--- a/ide/eclipse/README.importing-to-eclipse.txt
+++ b/ide/eclipse/README.importing-to-eclipse.txt
@@ -1,6 +1,33 @@
+(Java)
+
To import the formatter, go to the preferences, section Java > Code Style >
formatter, then click on import and choose
development/ide/eclipse/android-formatting.xml
To import the import order, to go into Java > Code Style > Organize Import,
then click on import and choose development/ide/eclipse/android.importorder
+
+(C++)
+
+To import the include paths, go to Project > Properties > C/C++ General >
+Paths and Symbols, then click on "Includes" and then click on "Import Settings".
+Choose development/ide/eclipse/android-include-paths.xml and hit Finish.
+You will need to re-index for the changes to get picked up (right click project
+in Package Explorer, then Index > Rebuild).
+
+To import the symbols, go to Project > Properties > C/C++ General >
+Paths and Symbols, then click on "Symbols" and then click on "Import Settings".
+Choose development/ide/eclipse/android-symbols.xml and hit Finish.
+You will need to re-index for the changes to get picked up (right click project
+in Package Explorer, then Index > Rebuild).
+
+In addition, you will need to add some include files (no way to import this
+from an XML file) by hand. Go to Project > Properties > C/C++ General >
+Paths and Symbols, then click on "Include Files" and click on "Add". Check
+"Add to all configurations" and "Add to all languages". Repeat for these files:
+
+ ${ProjDirPath}/build/core/combo/include/arch/linux-arm/AndroidConfig.h
+
+If you are having trouble seeing the "Include Files" tab, you will need to
+enable it in the global preference panel under "C/C++" /
+"Property Pages Settings".
diff --git a/ide/eclipse/android-include-paths.xml b/ide/eclipse/android-include-paths.xml
index be188bd47..4487fa43a 100644
--- a/ide/eclipse/android-include-paths.xml
+++ b/ide/eclipse/android-include-paths.xml
@@ -31,6 +31,7 @@
<includepath>${ProjDirPath}/system/core/include/arch/linux-arm</includepath>
<includepath>${ProjDirPath}/dalvik/libnativehelper/include</includepath>
<includepath>${ProjDirPath}/dalvik/libnativehelper/include/nativehelper</includepath>
+<includepath>${ProjDirPath}/system/media/camera/include</includepath>
</language>
<language name="GNU C++">
@@ -60,6 +61,7 @@
<includepath>${ProjDirPath}/system/core/include/arch/linux-arm</includepath>
<includepath>${ProjDirPath}/dalvik/libnativehelper/include</includepath>
<includepath>${ProjDirPath}/dalvik/libnativehelper/include/nativehelper</includepath>
+<includepath>${ProjDirPath}/system/media/camera/include</includepath>
</language>
<language name="GNU C">
@@ -89,6 +91,7 @@
<includepath>${ProjDirPath}/system/core/include/arch/linux-arm</includepath>
<includepath>${ProjDirPath}/dalvik/libnativehelper/include</includepath>
<includepath>${ProjDirPath}/dalvik/libnativehelper/include/nativehelper</includepath>
+<includepath>${ProjDirPath}/system/media/camera/include</includepath>
</language>
</section>