Lines Matching full:code
23 <p>The Android Build Cookbook offers code snippets to help you quickly implement some common build tasks. For additional instruction, please see the other build documents in this section.</p>
124 by the <code>include $(CLEAR_VARS)</code> line, so you can rely on them
186 <td valign="top">In Android.mk files that <code>include $(BUILD_PACKAGE)</code> set this
188 <p><code>LOCAL_ASSET_FILES += $(call find-subdir-assets)</code></td>
198 <code>LOCAL_PATH</code> if you have subdirectories of your own that you
200 <p><code>
203 </code></p>
205 <code>LOCAL_C_INCLUDES</code>, instead you should reference those files
206 in the <code>#include</code> statement with their subdirectories. For
208 <p><code>#include <utils/KeyedVector.h></code><br/>
209 not <code><s>#include <KeyedVector.h></s></code></p> </td>
225 <p><code>LOCAL_CFLAGS += -DLIBUTILS_NATIVE=1</code></td>
238 supply <code>LOCAL_COPY_HEADERS_TO</code>.</p>
248 <code>LOCAL_COPY_HEADERS</code> to.</p>
257 <td valign="top">If your C++ files end in something other than "<code>.cpp</code>",
259 <p><code>LOCAL_CPP_EXTENSION := .cc</code></p>
267 <p><code>LOCAL_CPPFLAGS += -ffriend-injection</code></p>
268 <code>LOCAL_CPPFLAGS</code> is guaranteed to be after <code>LOCAL_CFLAGS</code>
270 <code>LOCAL_CFLAGS</code></td>
289 <code>LOCAL_FORCE_STATIC_EXECUTABLE:=true</code>. There is a very short
295 <td valign="top"><p>Files that you add to <code>LOCAL_GENERATED_SOURCES</code> will be
330 <td valign="top"><p>When linking Java apps and libraries, <code>LOCAL_JAVA_LIBRARIES</code>
332 two of these: <code>core</code> and <code>framework</code>.
334 <p><code>LOCAL_JAVA_LIBRARIES := core framework</code></p>
335 <p>Note that setting <code>LOCAL_JAVA_LIBRARIES</code> is not necessary
337 "<code>include $(BUILD_PACKAGE)</code>". The appropriate libraries
355 <code>LOCAL_LDFLAGS</code>. Keep in mind that the order of parameters is
360 <td valign="top"><p><code>LOCAL_LDLIBS</code> allows you to specify additional libraries
368 <p><code>LOCAL_LDLIBS += -lcurses -lpthread<br/>
370 </code></p> </td>
374 <td valign="top"><code>LOCAL_MODULE</code> is the name of what's supposed to be generated
375 from your Android.mk. For exmample, for libkjs, the <code>LOCAL_MODULE</code>
377 For app modules, use <code>LOCAL_PACKAGE_NAME</code> instead of
378 <code>LOCAL_MODULE</code>. </td>
384 <code>LOCAL_UNSTRIPPED_PATH</code> if it's an executable or a shared library
395 <td valign="top"><p>Set <code>LOCAL_MODULE_TAGS</code> to any number of whitespace-separated
398 <li><code>user</code>: include this in user/userdebug builds</li>
399 <li><code>eng</code>: include this in eng builds</li>
400 <li><code>tests</code>: the target is a testing target and makes it available for tests</li>
401 <li><code>optional</code>: don't include this</li>
426 <td valign="top"><code>LOCAL_PACKAGE_NAME</code> is the name of an app. For example,
434 <p><code>module := $(HOST_OUT_EXECUTABLES)/$(LOCAL_MODULE)<br/>
437 </code></p>
470 <td valign="top"><p>Set <code>LOCAL_REQUIRED_MODULES</code> to any number of whitespace-separated
488 <p><code>LOCAL_SHARED_LIBRARIES := \<br/>
494 </code></td>
498 <td valign="top">The build system looks at <code>LOCAL_SRC_FILES</code> to know what source
503 <p><code>LOCAL_SRC_FILES := \<br/>
506 </code></td>
517 <p><code>LOCAL_STATIC_LIBRARIES := \<br/>
520 </code></td>
530 because you overrode <code>LOCAL_MODULE_PATH</code> for an executable or a
531 shared library. If you overrode <code>LOCAL_MODULE_PATH</code>, but not
532 <code>LOCAL_UNSTRIPPED_PATH</code>, an error will occur.</p>
538 the linker to remove dead code from them. This is mostly useful if you want to add a static library
540 <p><code>LOCAL_WHOLE_STATIC_LIBRARIES := \<br/>
542 </code></td>
549 <p><code>LOCAL_YACCFLAGS := -p kjsyy</code></td>