Home | History | Annotate | Download | only in core

Lines Matching full:code

158 scenarios.  The default <code>$(wildcard *)</code> will not work due to the
217 <code>. build/envsetup.sh</code>you'll get a few helpful shell functions:
222 <li><b>m</b> - Runs <code>make</code> from the top of the tree. This is
224 <code>TOP</code> environment variable set, it uses that. If you don't, it looks
226 <li><b>croot</b> - <code>cd</code> to the top of the tree.</li>
242 <code>eng<code>
245 This is the default flavor. A plain "<code>make</code>" is the
246 same as "<code>make eng</code>". <code>droid</code> is an alias
247 for <code>eng</code>.
249 <li>Installs modules tagged with: <code>eng</code>, <code>debug</code>,
250 <code>user</code>, and/or <code>development</code>.
254 <li><code>ro.secure=0</code>
255 <li><code>ro.debuggable=1</code>
256 <li><code>ro.kernel.android.checkjni=1</code>
257 <li><code>adb</code> is enabled by default.
262 <code>user<code>
265 "<code>make user</code>"
269 <li>Installs modules tagged with <code>user</code>.
273 <li><code>ro.secure=1</code>
274 <li><code>ro.debuggable=0</code>
275 <li><code>adb</code> is disabled by default.
280 <code>userdebug<code>
283 "<code>make userdebug</code>"
285 The same as <code>user</code>, except:
287 <li>Also installs modules tagged with <code>debug</code>.
288 <li><code>ro.debuggable=1</code>
289 <li><code>adb</code> is enabled by default.
296 "<code>make installclean</code>" between the two makes to guarantee that
297 you don't pick up files installed by the previous flavor. "<code>make
298 clean</code>" will also suffice, but it takes a lot longer.
307 <li><b>droid</b> - <code>make droid</code> is the normal build. This target
309 <li><b>all</b> - <code>make all</code> builds everything <code>make
310 droid</code> does, plus everything whose <code>LOCAL_MODULE_TAGS</code> do not
315 <code>make clean-libutils</code> and it will delete libutils.so and all of the
316 intermediate files, or you can type <code>make clean-Home</code> and it will
318 <li><b>clean</b> - <code>make clean</code> deletes all of the output and
319 intermediate files for this configuration. This is the same as <code>rm -rf
320 out/&lt;configuration&gt;/</code></li>
321 <li><b>clobber</b> - <code>make clobber</code> deletes all of the output
323 <code>rm -rf out/</code>.</li>
324 <li><b>dataclean</b> - <code>make dataclean</code> deletes contents of the data
328 <li><b>showcommands</b> - <code>showcommands</code> is a modifier target
332 to for debugging purposes, you can add <code>showcommands</code> to the list
333 of targets you build. For example <code>make showcommands</code> will build
334 the default android configuration, and <code>make runtime showcommands</code>
341 <li><b>LOCAL_MODULE</b> - Anything you specify as a <code>LOCAL_MODULE</code>
342 in an Android.mk is made into a pseudotarget. For example, <code>make
343 runtime</code> might be shorthand for <code>make
344 out/linux-x86-debug/system/bin/runtime</code> (which would work), and
345 <code>make libkjs</code> might be shorthand for <code>make
346 out/linux-x86-debug/system/lib/libkjs.so</code> (which would also work).</li>
347 <li><b>targets</b> - <code>make targets</code> will print a list of all of
365 <p>Use the <code>templates/apps</code> file.</p>
370 <p>Use the <code>templates/java_library</code> file.</p>
378 <p>Use the <code>templates/executable</code> file, or the
379 <code>templates/executable_host</code> file.</p>
386 <code>LOCAL_MODULE_PATH</code>. See
391 <p>Use the <code>templates/shared_library</code> file, or the
392 <code>templates/shared_library_host</code> file.</p>
398 <p>Use the <code>templates/static_library</code> file, or the
399 <code>templates/static_library_host</code> file.</p>
407 a couple of examples. <code>$@</code> is the make built-in variable for
411 <p>You need to put this after you have declared <code>LOCAL_PATH</code> and
412 <code>LOCAL_MODULE</code>, because the <code>$(local-intermediates-dir)</code>
413 and <code>$(local-host-intermediates-dir)</code> macros use these variables
465 <p>For a device build, <code>TARGET_OS</code> is <code>linux</code> (we're using
466 linux!), and <code>TARGET_ARCH</code> is <code>arm</code>.</p>
467 <p>For a simulator build, <code>TARGET_OS</code> and <code>TARGET_ARCH</code>
468 are set to the same as <code>HOST_OS</code> and <code>HOST_ARCH</code> are
469 on your platform. <code>TARGET_PRODUCT</code> is the name of the target
470 hardware/product you are building for. The value <code>sim</code> is used
520 <code>TARGET_SIMULATOR</code> will be set to <code>true</code>.
552 <code>LOCAL_UNSTRIPPED_PATH</code> location, because on target builds, we keep
553 the unstripped executables so GDB can find the symbols.</code>
554 <p>Look in <code>config/envsetup.make</code> for all of the variables defining
557 set <code>LOCAL_FORCE_STATIC_EXCUTABLE := true</code> in your Android.mk, which
567 by the <code>include $(CLEAR_VARS)</code> line, so you can rely on them
598 <p>In Android.mk files that <code>include $(BUILD_PACKAGE)</code> set this
600 <p><code>LOCAL_ASSET_FILES += $(call find-subdir-assets)</code></p>
617 <p><code>LOCAL_CFLAGS += -DLIBUTILS_NATIVE=1</code></p>
622 <p><code>LOCAL_CPPFLAGS += -ffriend-injection</code></p>
623 <code>LOCAL_CPPFLAGS</code> is guaranteed to be after <code>LOCAL_CFLAGS</code>
625 <code>LOCAL_CFLAGS</code>.
628 <p>If your C++ files end in something other than "<code>.cpp</code>",
630 <p><code>LOCAL_CPP_EXTENSION := .cc</code></p>
636 paths and global cflags. If <code>LOCAL_NO_DEFAULT_COMPILER_FLAGS</code>
639 <code>LOCAL_C_INCLUDES</code>, <code>LOCAL_CFLAGS</code>, and
640 <code>LOCAL_CPPFLAGS</code> will still be used in this case, as will
641 any <code>DEBUG_CFLAGS</code> that are defined for the module.
646 supply <code>LOCAL_COPY_HEADERS_TO</code>.</p>
656 <code>LOCAL_COPY_HEADERS</code> to.</p>
666 <code>LOCAL_PATH</code> if you have subdirectories of your own that you
668 <p><code>
671 </code></p>
673 <code>LOCAL_C_INCLUDES</code>, instead you should reference those files
674 in the <code>#include</code> statement with their subdirectories. For
676 <p><code>#include &lt;utils/KeyedVector.h&gt;</code><br/>
677 not <code><s>#include &lt;KeyedVector.h&gt;</s></code></p>
682 <p>Set <code>LOCAL_MODULE_TAGS</code> to any number of whitespace-separated
683 tags. If the tag list is empty or contains <code>droid</code>, the module
684 will get installed as part of a <code>make droid</code>. Otherwise, it will
685 only get installed by running <code>make &lt;your-module&gt;</code>
686 or with the <code>make all</code> pseudotarget.</p>
689 <p>Set <code>LOCAL_REQUIRED_MODULES</code> to any number of whitespace-separated
697 <code>LOCAL_FORCE_STATIC_EXECUTABLE:=true</code>. There is a very short
702 <p>Files that you add to <code>LOCAL_GENERATED_SOURCES</code> will be
710 <p><code>LOCAL_JAVACFLAGS += -Xlint:deprecation</code></p>
713 <p>When linking Java apps and libraries, <code>LOCAL_JAVA_LIBRARIES</code>
715 two of these: <code>core</code> and <code>framework</code>.
717 <p><code>LOCAL_JAVA_LIBRARIES := core framework</code></p>
718 <p>Note that setting <code>LOCAL_JAVA_LIBRARIES</code> is not necessary
720 "<code>include $(BUILD_PACKAGE)</code>". The appropriate libraries
725 <code>LOCAL_LDFLAGS</code>. Keep in mind that the order of parameters is
729 <p><code>LOCAL_LDLIBS</code> allows you to specify additional libraries
737 <p><code>LOCAL_LDLIBS += -lcurses -lpthread<br/>
739 </code></p>
743 set <code>LOCAL_NO_MANIFEST:=true</code>. The common resources package
747 <p><code>LOCAL_PACKAGE_NAME</code> is the name of an app. For example,
754 <p><code>LOCAL_PATH := $(my-dir)</code></p>
755 <p>The <code>my-dir</code> macro uses the
756 <code><a href="http://www.gnu.org/software/make/manual/make.html#MAKEFILE_005fLIST-Variable">MAKEFILE_LIST</a></code>
760 several <code>include</code> lines that reference <code>LOCAL_PATH</code>,
767 <p><code>module := $(HOST_OUT_EXECUTABLES)/$(LOCAL_MODULE)<br/>
770 </code></p>
785 <p><code>LOCAL_SHARED_LIBRARIES := \<br/>
791 </code></p>
794 <p>The build system looks at <code>LOCAL_SRC_FILES</code> to know what source
799 <p><code>LOCAL_SRC_FILES := \<br/>
802 </code></p>
808 <p><code>LOCAL_STATIC_LIBRARIES := \<br/>
811 </code></p>
814 <p><code>LOCAL_MODULE</code> is the name of what's supposed to be generated
815 from your Android.mk. For exmample, for libkjs, the <code>LOCAL_MODULE</code>
817 For app modules, use <code>LOCAL_PACKAGE_NAME</code> instead of
818 <code>LOCAL_MODULE</code>. We're planning on switching to ant for the apps,
824 <code>LOCAL_UNSTRIPPED_PATH</code> if it's an executable or a shared library
832 because you overrode <code>LOCAL_MODULE_PATH</code> for an executable or a
833 shared library. If you overrode <code>LOCAL_MODULE_PATH</code>, but not
834 <code>LOCAL_UNSTRIPPED_PATH</code>, an error will occur.</p>
839 the linker to remove dead code from them. This is mostly useful if you want to add a static library
841 <p><code>LOCAL_WHOLE_STATIC_LIBRARIES := \<br/>
843 </code></p>
849 <p><code>LOCAL_YACCFLAGS := -p kjsyy</code></p>
889 <code>LOCAL_ADDITIONAL_DEPENDENCIES</code>. Usually this is a workaround
928 <p>The suffix that will be appended to <code>LOCAL_MODULE</code> to form
929 <code>LOCAL_MODULE_NAME</code>. For example, .so, .a, .dylib.</p>
933 be stripped or not, based on whether <code>LOCAL_STRIPPABLE_MODULE</code>