[android-building] GPL projects for Android O Preview 2

2017-05-22 Thread 'Bill Yi' via Android Building
hi All,

Today, we pushed a small number of GPL projects for the O Preview 2. The 
tag is android-o-preview-2. This preview is not a full platform update and 
only for reference.

We also pushed the kernel source for the following devices:
  Tag,Branch,   
Project, Device
- android-o-preview-2_r0.1, android-tegra-dragon-3.18-o-preview-2, 
kernel/tegra, Pixel C
- android-o-preview-2_r0.2, android-msm-bullhead-3.10-o-preview-2, 
kernel/msm, Nexus 5X
- android-o-preview-2_r0.3, android-msm-angler-3.10-o-preview-2, 
kernel/msm, Nexus 6P
- android-o-preview-2_r0.6, android-msm-marlin-3.18-o-preview-2, 
kernel/msm, Pixel XL (marlin)/Pixel (sailfish)

Thanks

bill

-- 
-- 
You received this message because you are subscribed to the "Android Building" 
mailing list.
To post to this group, send email to android-building@googlegroups.com
To unsubscribe from this group, send email to
android-building+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-building?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"Android Building" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-building+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-building] Soong build system conditional question

2017-05-22 Thread Colin Cross
One of our goals for build health is to reduce the number of different
ways we build modules.  Adding too many build flags makes it harder to
tell if a change will break the build, and hard to run tests.  We
would much rather compiling everything the same on all devices, and
then determine which parts to use at runtime.

For local experimentation, you can add flags with:
1.  Add: Ext_avd struct { Srcs []string } to varaibleProperties in
build/soong/android/variable.go
2.  Add: Ext_avd *bool `json:",omitempty"` to productVariables in the same file
3.  Modify build/make/core/soong_config.mk to pass BOARD_HAVE_EXT_AVDT to soong.

On Tue, May 16, 2017 at 11:12 PM, Jeffrey An  wrote:
> Hi,
>
>
>
> I have been studying android-o-preview-1 especially Soong and Go build
> system.
>
>
>
> I’d like to add new feature to Bluetooth stack and attachment is one way to
> do it.
>
> In the attachment, I can use #ifdef EXT_AVDT in the cc source file.
>
> As you can see in the attachment, BOARD_HAVE_EXT_AVDT := true in the
> BoardConfig.mk will enable EXT_AVDT in the system/bt stack.
>
> And Soong will always compile avdt_ext_avdt.cc file even if
> BOARD_HAVE_EXT_AVDT is not true in the BoardConfig.mk
>
>
>
> I’d like to know another way that avdt_ext_avdt.cc file would not be
> compiled without BOARD_HAVE_EXT_AVDT
>
>
>
> In the readme file in the Soong, you said
>
> ```
>
> cc_library {
>
> ...
>
> srcs: ["generic.cpp"],
>
> arch: {
>
> arm: {
>
> srcs: ["arm.cpp"],
>
> },
>
> x86: {
>
> srcs: ["x86.cpp"],
>
> },
>
> },
>
> }
>
> ```
>
>
>
> I tried to find example about it but I couldn’t find it.
>
>
>
> I want to change system/bt/stack/Android.bp like below
>
> …
>
> "smp/smp_utils.cc",
>
> "srvc/srvc_battery.cc",
>
> "srvc/srvc_dis.cc",
>
> "srvc/srvc_eng.cc",
>
> ],
>
> static_libs: [
>
> "libbt-hci",
>
> "libFraunhoferAAC",
>
> ],
>
> shared_libs: [
>
> "libcutils",
>
> "liblog",
>
> ],
>
> required: [
>
> "libldacBT_enc",
>
> ],
>
> ext-avdt: {
>
> srcs: ["avdt/avdt_ext_avdt.cc "],
>
> }
>
> }
>
> And  avdt_ext_avdt.cc file will be compiled when BoardConfig.mk file has
> BOARD_HAVE_EXT_AVDT := true
>
>
>
> Could anyone guide me how to do it?
>
>
> --
> --
> You received this message because you are subscribed to the "Android
> Building" mailing list.
> To post to this group, send email to android-building@googlegroups.com
> To unsubscribe from this group, send email to
> android-building+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-building?hl=en
>
> ---
> You received this message because you are subscribed to the Google Groups
> "Android Building" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to android-building+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
-- 
You received this message because you are subscribed to the "Android Building" 
mailing list.
To post to this group, send email to android-building@googlegroups.com
To unsubscribe from this group, send email to
android-building+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-building?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"Android Building" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-building+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.