blob: 8459b33b5aaa35dda4b72213fb8459fe0efa94a6 [file] [log] [blame]
Torne (Richard Coles)2a99a7e2013-03-28 15:31:22 +00001# This file is generated by gyp; do not edit.
2
3include $(CLEAR_VARS)
4
5LOCAL_MODULE_CLASS := STATIC_LIBRARIES
6LOCAL_MODULE := gpu_command_buffer_client_gyp
7LOCAL_MODULE_SUFFIX := .a
8LOCAL_MODULE_TAGS := optional
9gyp_intermediate_dir := $(call local-intermediates-dir)
10gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared)
11
12# Make sure our deps are built first.
13GYP_TARGET_DEPENDENCIES := \
14 $(call intermediates-dir-for,GYP,third_party_khronos_khronos_headers_gyp)/khronos_headers.stamp
15
16GYP_GENERATED_OUTPUTS :=
17
18# Make sure our deps and generated files are built first.
19LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS)
20
21LOCAL_CPP_EXTENSION := .cc
22LOCAL_GENERATED_SOURCES :=
23
24GYP_COPIED_SOURCE_ORIGIN_DIRS :=
25
26LOCAL_SRC_FILES := \
27 gpu/command_buffer/client/atomicops.cc \
28 gpu/command_buffer/client/cmd_buffer_helper.cc \
29 gpu/command_buffer/client/fenced_allocator.cc \
30 gpu/command_buffer/client/mapped_memory.cc \
31 gpu/command_buffer/client/ring_buffer.cc \
32 gpu/command_buffer/client/transfer_buffer.cc
33
34
35# Flags passed to both C and C++ files.
36MY_CFLAGS := \
37 -fstack-protector \
38 --param=ssp-buffer-size=4 \
39 -Werror \
40 -fno-exceptions \
41 -fno-strict-aliasing \
42 -Wall \
43 -Wno-unused-parameter \
44 -Wno-missing-field-initializers \
45 -fvisibility=hidden \
46 -pipe \
47 -fPIC \
48 -fno-tree-sra \
49 -fuse-ld=gold \
50 -Wno-psabi \
51 -ffunction-sections \
52 -funwind-tables \
53 -g \
54 -fstack-protector \
55 -fno-short-enums \
56 -finline-limit=64 \
57 -Wa,--noexecstack \
58 -U_FORTIFY_SOURCE \
59 -Wno-extra \
60 -Wno-ignored-qualifiers \
61 -Wno-type-limits \
62 -Os \
63 -g \
64 -fomit-frame-pointer \
65 -fdata-sections \
66 -ffunction-sections
67
68MY_CFLAGS_C :=
69
70MY_DEFS := \
Torne (Richard Coles)2a99a7e2013-03-28 15:31:22 +000071 '-D_FILE_OFFSET_BITS=64' \
72 '-DUSE_LINUX_BREAKPAD' \
73 '-DNO_TCMALLOC' \
74 '-DDISABLE_NACL' \
75 '-DCHROMIUM_BUILD' \
76 '-DUSE_LIBJPEG_TURBO=1' \
77 '-DUSE_PROPRIETARY_CODECS' \
Torne (Richard Coles)2a99a7e2013-03-28 15:31:22 +000078 '-DENABLE_GPU=1' \
79 '-DUSE_OPENSSL=1' \
80 '-DENABLE_EGLIMAGE=1' \
81 '-DENABLE_LANGUAGE_DETECTION=1' \
82 '-D__STDC_CONSTANT_MACROS' \
83 '-D__STDC_FORMAT_MACROS' \
84 '-DANDROID' \
85 '-D__GNU_SOURCE=1' \
86 '-DUSE_STLPORT=1' \
87 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
88 '-DCHROME_BUILD_ID=""' \
89 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
90 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
91 '-D_DEBUG'
92
93LOCAL_CFLAGS := $(MY_CFLAGS_C) $(MY_CFLAGS) $(MY_DEFS)
94
95# Include paths placed before CFLAGS/CPPFLAGS
96LOCAL_C_INCLUDES := \
Torne (Richard Coles)2a99a7e2013-03-28 15:31:22 +000097 $(LOCAL_PATH) \
Torne (Richard Coles)c2e0dbd2013-05-09 18:35:53 +010098 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
Torne (Richard Coles)2a99a7e2013-03-28 15:31:22 +000099 $(LOCAL_PATH)/third_party/khronos \
100 $(LOCAL_PATH)/gpu \
101 $(GYP_ABS_ANDROID_TOP_DIR)/frameworks/wilhelm/include \
102 $(GYP_ABS_ANDROID_TOP_DIR)/bionic \
103 $(GYP_ABS_ANDROID_TOP_DIR)/external/stlport/stlport
104
105LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES)
106
107# Flags passed to only C++ (and not C) files.
108LOCAL_CPPFLAGS := \
109 -fno-rtti \
110 -fno-threadsafe-statics \
111 -fvisibility-inlines-hidden \
112 -Wsign-compare \
113 -Wno-abi \
114 -Wno-error=c++0x-compat \
115 -Wno-non-virtual-dtor \
116 -Wno-sign-promo
117
118### Rules for final target.
119
120LOCAL_LDFLAGS := \
121 -Wl,-z,now \
122 -Wl,-z,relro \
123 -Wl,-z,noexecstack \
124 -fPIC \
125 -Wl,-z,relro \
126 -Wl,-z,now \
127 -fuse-ld=gold \
128 -nostdlib \
129 -Wl,--no-undefined \
130 -Wl,--exclude-libs=ALL \
131 -Wl,--icf=safe \
Torne (Richard Coles)c2e0dbd2013-05-09 18:35:53 +0100132 -Wl,--gc-sections \
Torne (Richard Coles)2a99a7e2013-03-28 15:31:22 +0000133 -Wl,-O1 \
Torne (Richard Coles)c2e0dbd2013-05-09 18:35:53 +0100134 -Wl,--as-needed
Torne (Richard Coles)2a99a7e2013-03-28 15:31:22 +0000135
136
137LOCAL_STATIC_LIBRARIES :=
138
139# Enable grouping to fix circular references
140LOCAL_GROUP_STATIC_LIBRARIES := true
141
142LOCAL_SHARED_LIBRARIES := \
143 libstlport \
144 libdl
145
146# Add target alias to "gyp_all_modules" target.
147.PHONY: gyp_all_modules
148gyp_all_modules: gpu_command_buffer_client_gyp
149
150# Alias gyp target name.
151.PHONY: command_buffer_client
152command_buffer_client: gpu_command_buffer_client_gyp
153
154include $(BUILD_STATIC_LIBRARY)