Skip to content

Commit

Permalink
Revert submission 1194828-revert-1191937-art_apex_available-DWXQGTKMAR
Browse files Browse the repository at this point in the history
Reason for revert: relanding with fix
Reverted Changes:
Ic4119368c:Revert submission 1191937-art_apex_available
Ia084976bb:Revert submission 1191937-art_apex_available
Iada86226d:Revert submission 1191937-art_apex_available
Ic76735eac:Revert submission 1191937-art_apex_available
I1eb30e355:Revert submission 1191937-art_apex_available
Icaf95d260:Revert submission 1191937-art_apex_available
Ie8bace4be:Revert submission 1191937-art_apex_available
I8961702cf:Revert submission 1191937-art_apex_available
I39316f9ef:Revert submission 1191937-art_apex_available
I522a7e83b:Revert submission 1191937-art_apex_available
I8b9424976:Revert submission 1191937-art_apex_available
I48b998629:Revert submission 1191937-art_apex_available

Change-Id: I7a101d39ff63c153675e4e741f9de1a15a778d33
  • Loading branch information
jiyongp authored and Treehugger Robot committed Dec 20, 2019
1 parent fb53708 commit 066dd90
Show file tree
Hide file tree
Showing 32 changed files with 233 additions and 26 deletions.
42 changes: 21 additions & 21 deletions Android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -407,16 +407,16 @@ LOCAL_MODULE := art-runtime

# Base requirements.
LOCAL_REQUIRED_MODULES := \
dalvikvm \
dex2oat \
dexoptanalyzer \
libart \
libart-compiler \
libopenjdkjvm \
libopenjdkjvmti \
profman \
libadbconnection \
libperfetto_hprof \
dalvikvm.com.android.art.release \
dex2oat.com.android.art.release \
dexoptanalyzer.com.android.art.release \
libart.com.android.art.release \
libart-compiler.com.android.art.release \
libopenjdkjvm.com.android.art.release \
libopenjdkjvmti.com.android.art.release \
profman.com.android.art.release \
libadbconnection.com.android.art.release \
libperfetto_hprof.com.android.art.release \

# Potentially add in debug variants:
#
Expand All @@ -430,16 +430,16 @@ ifneq (,$(filter userdebug eng,$(TARGET_BUILD_VARIANT)))
endif
ifeq (true,$(art_target_include_debug_build))
LOCAL_REQUIRED_MODULES += \
dex2oatd \
dexoptanalyzerd \
libartd \
libartd-compiler \
libopenjdkd \
libopenjdkjvmd \
libopenjdkjvmtid \
profmand \
libadbconnectiond \
libperfetto_hprofd \
dex2oatd.com.android.art.debug \
dexoptanalyzerd.com.android.art.debug \
libartd.com.android.art.debug \
libartd-compiler.com.android.art.debug \
libopenjdkd.com.android.art.debug \
libopenjdkjvmd.com.android.art.debug \
libopenjdkjvmtid.com.android.art.debug \
profmand.com.android.art.debug \
libadbconnectiond.com.android.art.debug \
libperfetto_hprofd.com.android.art.debug \

endif
endif
Expand Down Expand Up @@ -625,7 +625,7 @@ build-art-target-golem: dex2oat dalvikvm linker libstdc++ \
$(TARGET_OUT_EXECUTABLES)/art \
$(TARGET_OUT)/etc/public.libraries.txt \
$(ART_TARGET_DEX_DEPENDENCIES) \
$(ART_TARGET_SHARED_LIBRARY_DEPENDENCIES) \
$(ART_DEBUG_TARGET_SHARED_LIBRARY_DEPENDENCIES) \
$(ART_TARGET_SHARED_LIBRARY_BENCHMARK) \
$(TARGET_CORE_IMG_OUT_BASE).art \
$(TARGET_CORE_IMG_OUT_BASE)-interpreter.art \
Expand Down
7 changes: 7 additions & 0 deletions adbconnection/Android.bp
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ art_cc_library {
"libart",
"libartbase",
],
apex_available: [
"com.android.art.release",
"com.android.art.debug",
],
}

// We export a library to do the server-side socket handling that gets loaded
Expand Down Expand Up @@ -91,4 +95,7 @@ art_cc_library {
"libartd",
"libartbased",
],
apex_available: [
"com.android.art.debug",
],
}
5 changes: 3 additions & 2 deletions build/Android.common_path.mk
Original file line number Diff line number Diff line change
Expand Up @@ -111,10 +111,11 @@ ART_HOST_SHARED_LIBRARY_DEPENDENCIES += $(foreach lib,$(ART_CORE_SHARED_LIBRARIE
ART_HOST_SHARED_LIBRARY_DEBUG_DEPENDENCIES += $(foreach lib,$(ART_CORE_SHARED_DEBUG_LIBRARIES), $(2ND_HOST_OUT_SHARED_LIBRARIES)/$(lib).so)
endif

ART_TARGET_SHARED_LIBRARY_DEPENDENCIES := $(foreach lib,$(ART_CORE_SHARED_LIBRARIES), $(TARGET_OUT_SHARED_LIBRARIES)/$(lib).so)
# Both the primary and the secondary arches of the libs are built by depending
# on the module name.
ART_DEBUG_TARGET_SHARED_LIBRARY_DEPENDENCIES := $(foreach lib,$(ART_CORE_SHARED_LIBRARIES), $(lib).com.android.art.debug)
ART_TARGET_SHARED_LIBRARY_DEBUG_DEPENDENCIES := $(foreach lib,$(ART_CORE_SHARED_DEBUG_LIBRARIES), $(TARGET_OUT_SHARED_LIBRARIES)/$(lib).so)
ifdef TARGET_2ND_ARCH
ART_TARGET_SHARED_LIBRARY_DEPENDENCIES += $(foreach lib,$(ART_CORE_SHARED_LIBRARIES), $(2ND_TARGET_OUT_SHARED_LIBRARIES)/$(lib).so)
ART_TARGET_SHARED_LIBRARY_DEBUG_DEPENDENCIES += $(foreach lib,$(ART_CORE_SHARED_DEBUG_LIBRARIES), $(2ND_TARGET_OUT_SHARED_LIBRARIES)/$(lib).so)
endif

Expand Down
8 changes: 5 additions & 3 deletions build/Android.gtest.mk
Original file line number Diff line number Diff line change
Expand Up @@ -500,13 +500,15 @@ define define-art-gtest-rule-target

# Add the test dependencies to test-art-target-sync, which will be a prerequisite for the test
# to ensure files are pushed to the device.
# Note that, both the primary and the secondary arches of the libs are built by depending
# on the module name.
gtest_deps := \
$$(ART_GTEST_$(1)_TARGET_DEPS) \
$(foreach file,$(ART_GTEST_$(1)_DEX_DEPS),$(ART_TEST_TARGET_GTEST_$(file)_DEX)) \
$$(gtest_exe) \
$$($(3)TARGET_OUT_SHARED_LIBRARIES)/libicu_jni.so \
$$($(3)TARGET_OUT_SHARED_LIBRARIES)/libjavacore.so \
$$($(3)TARGET_OUT_SHARED_LIBRARIES)/libopenjdkd.so \
libicu_jni.com.android.art.debug \
libjavacore.com.android.art.debug \
libopenjdkd.com.android.art.debug \
$$(foreach jar,$$(TARGET_TEST_CORE_JARS),$$(TARGET_OUT_JAVA_LIBRARIES)/$$(jar).jar)

ART_TEST_TARGET_GTEST_DEPENDENCIES += $$(gtest_deps)
Expand Down
7 changes: 7 additions & 0 deletions compiler/Android.bp
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,10 @@ art_cc_library {
},
},
},
apex_available: [
"com.android.art.release",
"com.android.art.debug",
],
}

cc_defaults {
Expand Down Expand Up @@ -330,6 +334,9 @@ art_cc_library {
"libdexfiled",
],
whole_static_libs: ["libelffiled"],
apex_available: [
"com.android.art.debug",
],
}

cc_defaults {
Expand Down
4 changes: 4 additions & 0 deletions dalvikvm/Android.bp
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,8 @@ art_cc_binary {

// Create symlink for the primary version target.
symlink_preferred_arch: true,
apex_available: [
"com.android.art.release",
"com.android.art.debug",
],
}
13 changes: 13 additions & 0 deletions dex2oat/Android.bp
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,9 @@ art_cc_library_static {
"libartpalette",
"libprofile",
],
apex_available: [
"com.android.art.release",
],
}

cc_defaults {
Expand Down Expand Up @@ -147,6 +150,9 @@ art_cc_library_static {
"libartpalette",
"libprofiled",
],
apex_available: [
"com.android.art.debug",
],
}

cc_defaults {
Expand Down Expand Up @@ -283,6 +289,10 @@ art_cc_binary {
],
},
},
apex_available: [
"com.android.art.release",
"com.android.art.debug",
],
}

art_cc_binary {
Expand Down Expand Up @@ -330,6 +340,9 @@ art_cc_binary {
suffix: "64",
},
},
apex_available: [
"com.android.art.debug",
],
}

cc_defaults {
Expand Down
5 changes: 5 additions & 0 deletions dexdump/Android.bp
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,11 @@ art_cc_binary {
enabled: true,
},
},
apex_available: [
"com.android.art.release",
"com.android.art.debug",
"//apex_available:platform", // for SDK
],
}

art_cc_test {
Expand Down
18 changes: 18 additions & 0 deletions dexlayout/Android.bp
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,10 @@ art_cc_library {
],
},
},
apex_available: [
"com.android.art.release",
"com.android.art.debug",
],
}

cc_defaults {
Expand Down Expand Up @@ -136,6 +140,9 @@ art_cc_library {
],
},
},
apex_available: [
"com.android.art.debug",
],
}

cc_defaults {
Expand Down Expand Up @@ -168,6 +175,10 @@ art_cc_binary {
"libartbase",
"libart-dexlayout",
],
apex_available: [
"com.android.art.release",
"com.android.art.debug",
],
}

art_cc_binary {
Expand Down Expand Up @@ -206,6 +217,9 @@ art_cc_binary {
"libartbased",
"libartd-dexlayout",
],
apex_available: [
"com.android.art.debug",
],
}

art_cc_test {
Expand Down Expand Up @@ -238,6 +252,10 @@ art_cc_binary {
],
},
},
apex_available: [
"com.android.art.release",
"com.android.art.debug",
],
}

art_cc_test {
Expand Down
4 changes: 4 additions & 0 deletions dexlist/Android.bp
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ art_cc_binary {
"libartbase",
"libbase",
],
apex_available: [
"com.android.art.release",
"com.android.art.debug",
],
}

art_cc_binary {
Expand Down
7 changes: 7 additions & 0 deletions dexoptanalyzer/Android.bp
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ art_cc_binary {
"libart",
"libartbase",
],
apex_available: [
"com.android.art.release",
"com.android.art.debug",
],
}

art_cc_binary {
Expand All @@ -53,6 +57,9 @@ art_cc_binary {
"libartd",
"libartbased",
],
apex_available: [
"com.android.art.debug",
],
}

art_cc_test {
Expand Down
4 changes: 4 additions & 0 deletions disassembler/Android.bp
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@ art_cc_library {
// For disassembler_arm*.
"libvixl",
],
apex_available: [
"com.android.art.release",
"com.android.art.debug",
],
}

art_cc_library {
Expand Down
4 changes: 4 additions & 0 deletions dt_fd_forward/Android.bp
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ cc_defaults {
art_cc_library {
name: "libdt_fd_forward",
defaults: ["dt_fd_forward-defaults"],
apex_available: [
"com.android.art.release",
"com.android.art.debug",
],
}

art_cc_library {
Expand Down
7 changes: 7 additions & 0 deletions imgdiag/Android.bp
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@ art_cc_binary {
"libartbase",
"libart-compiler",
],
apex_available: [
"com.android.art.release",
"com.android.art.debug",
],
}

art_cc_binary {
Expand All @@ -70,6 +74,9 @@ art_cc_binary {
"libartbased",
"libartd-compiler",
],
apex_available: [
"com.android.art.debug",
],
}

art_cc_test {
Expand Down
10 changes: 10 additions & 0 deletions libartbase/Android.bp
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,13 @@ art_cc_library {
// TODO(b/133140750): Clean this up.
"//packages/modules/NetworkStack/tests:__subpackages__",
],
apex_available: [
"com.android.art.release",
"com.android.art.debug",
// TODO(b/142944931) Clean this up. This is due to the dependency to libdexfile_support_static
// from /system/core, etc.
"//apex_available:platform",
],

shared_libs: [
"libbase",
Expand All @@ -195,6 +202,9 @@ art_cc_library {
"art_debug_defaults",
"libartbase_defaults",
],
apex_available: [
"com.android.art.debug",
],
shared_libs: [
"libbase",
"libziparchive",
Expand Down
7 changes: 7 additions & 0 deletions libartpalette/Android.bp
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,13 @@ art_cc_library {
],
},
},
apex_available: [
"com.android.art.release",
"com.android.art.debug",
// TODO(b/142944931) Clean this up. This is due to the dependency to libdexfile_support_static
// from /system/core, etc.
"//apex_available:platform",
],
}

art_cc_test {
Expand Down
Loading

0 comments on commit 066dd90

Please sign in to comment.