Skip to content

Commit 1249851

Browse files
colincrossAndroid (Google) Code Review
authored andcommitted
Merge "stagefright: compile without chromium for pdk builds"
2 parents 9b0e599 + 0821013 commit 1249851

2 files changed

Lines changed: 10 additions & 5 deletions

File tree

media/libstagefright/Android.mk

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@ LOCAL_C_INCLUDES:= \
6868
LOCAL_SHARED_LIBRARIES := \
6969
libbinder \
7070
libcamera_client \
71-
libchromium_net \
7271
libcrypto \
7372
libcutils \
7473
libdl \
@@ -101,14 +100,18 @@ LOCAL_STATIC_LIBRARIES := \
101100
libstagefright_httplive \
102101
libstagefright_id3 \
103102
libFLAC \
104-
libstagefright_chromium_http \
103+
104+
ifneq ($(TARGET_BUILD_PDK), true)
105+
LOCAL_STATIC_LIBRARIES += \
106+
libstagefright_chromium_http
107+
LOCAL_SHARED_LIBRARIES += \
108+
libchromium_net
109+
LOCAL_CPPFLAGS += -DCHROMIUM_AVAILABLE=1
110+
endif
105111

106112
LOCAL_SHARED_LIBRARIES += libstlport
107113
include external/stlport/libstlport.mk
108114

109-
# TODO: Chromium is always available, so this flag can be removed.
110-
LOCAL_CPPFLAGS += -DCHROMIUM_AVAILABLE=1
111-
112115
LOCAL_SHARED_LIBRARIES += \
113116
libstagefright_enc_common \
114117
libstagefright_avc_common \

media/libstagefright/chromium_http/Android.mk

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
LOCAL_PATH:= $(call my-dir)
22

3+
ifneq ($(TARGET_BUILD_PDK), true)
34
include $(CLEAR_VARS)
45

56
LOCAL_SRC_FILES:= \
@@ -21,3 +22,4 @@ include external/stlport/libstlport.mk
2122
LOCAL_MODULE:= libstagefright_chromium_http
2223

2324
include $(BUILD_STATIC_LIBRARY)
25+
endif

0 commit comments

Comments
 (0)