Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
platform_frameworks_base-old
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Farzin Kazemzadeh
platform_frameworks_base-old
Commits
9a4e4e91
Commit
9a4e4e91
authored
3 years ago
by
Anton Hansson
Committed by
Gerrit Code Review
3 years ago
Browse files
Options
Downloads
Plain Diff
Merge "Auto-generate list of module impl jars"
parents
4274dee3
95e89a8c
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Android.bp
+1
-14
1 addition, 14 deletions
Android.bp
apex/media/framework/Android.bp
+1
-1
1 addition, 1 deletion
apex/media/framework/Android.bp
api/api.go
+24
-3
24 additions, 3 deletions
api/api.go
with
26 additions
and
18 deletions
Android.bp
+
1
−
14
View file @
9a4e4e91
...
...
@@ -140,21 +140,8 @@ java_library {
name: "framework-all",
installable: false,
static_libs: [
"a
ndroid.net.ipsec.ike.
impl",
"a
ll-framework-module-
impl",
"framework-minus-apex",
"framework-appsearch.impl",
"framework-connectivity.impl",
"framework-connectivity-tiramisu.impl",
"framework-graphics.impl",
"framework-mediaprovider.impl",
"framework-permission.impl",
"framework-permission-s.impl",
"framework-scheduling.impl",
"framework-sdkextensions.impl",
"framework-statsd.impl",
"framework-tethering.impl",
"framework-wifi.impl",
"updatable-media",
],
apex_available: ["//apex_available:platform"],
sdk_version: "core_platform",
...
...
This diff is collapsed.
Click to expand it.
apex/media/framework/Android.bp
+
1
−
1
View file @
9a4e4e91
...
...
@@ -63,8 +63,8 @@ java_library {
min_sdk_version: "29",
visibility: [
"//frameworks/av/apex:__subpackages__",
"//frameworks/base", // For framework-all
"//frameworks/base/apex/media/service",
"//frameworks/base/api", // For framework-all
],
}
...
...
This diff is collapsed.
Click to expand it.
api/api.go
+
24
−
3
View file @
9a4e4e91
...
...
@@ -27,6 +27,7 @@ import (
const
art
=
"art.module.public.api"
const
conscrypt
=
"conscrypt.module.public.api"
const
i18n
=
"i18n.module.public.api"
var
core_libraries_modules
=
[]
string
{
art
,
conscrypt
,
i18n
}
// The intention behind this soong plugin is to generate a number of "merged"
// API-related modules that would otherwise require a large amount of very
...
...
@@ -199,9 +200,28 @@ func createMergedSystemStubs(ctx android.LoadHookContext, modules []string) {
ctx
.
CreateModule
(
java
.
LibraryFactory
,
&
props
)
}
func
createMergedModuleLibStubs
(
ctx
android
.
LoadHookContext
,
modules
[]
string
)
{
func
createMergedFrameworkImpl
(
ctx
android
.
LoadHookContext
,
modules
[]
string
)
{
// This module is for the "framework-all" module, which should not include the core libraries.
modules
=
removeAll
(
modules
,
core_libraries_modules
)
// TODO(b/214988855): remove the line below when framework-bluetooth has an impl jar.
modules
=
remove
(
modules
,
"framework-bluetooth"
)
props
:=
libraryProps
{}
props
.
Name
=
proptools
.
StringPtr
(
"all-framework-module-impl"
)
props
.
Static_libs
=
transformArray
(
modules
,
""
,
".impl"
)
// Media module's impl jar is called "updatable-media"
for
i
,
v
:=
range
props
.
Static_libs
{
if
v
==
"framework-media.impl"
{
props
.
Static_libs
[
i
]
=
"updatable-media"
}
}
props
.
Sdk_version
=
proptools
.
StringPtr
(
"module_current"
)
props
.
Visibility
=
[]
string
{
"//frameworks/base"
}
ctx
.
CreateModule
(
java
.
LibraryFactory
,
&
props
)
}
func
createMergedFrameworkModuleLibStubs
(
ctx
android
.
LoadHookContext
,
modules
[]
string
)
{
// The user of this module compiles against the "core" SDK, so remove core libraries to avoid dupes.
modules
=
removeAll
(
modules
,
[]
string
{
art
,
conscrypt
,
i18n
}
)
modules
=
removeAll
(
modules
,
core_libraries_modules
)
props
:=
libraryProps
{}
props
.
Name
=
proptools
.
StringPtr
(
"framework-updatable-stubs-module_libs_api"
)
props
.
Static_libs
=
transformArray
(
modules
,
""
,
".stubs.module_lib"
)
...
...
@@ -269,7 +289,8 @@ func (a *CombinedApis) createInternalModules(ctx android.LoadHookContext) {
createMergedPublicStubs
(
ctx
,
bootclasspath
)
createMergedSystemStubs
(
ctx
,
bootclasspath
)
createMergedModuleLibStubs
(
ctx
,
bootclasspath
)
createMergedFrameworkModuleLibStubs
(
ctx
,
bootclasspath
)
createMergedFrameworkImpl
(
ctx
,
bootclasspath
)
createMergedAnnotations
(
ctx
,
bootclasspath
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment