Re: [android-building] Dependencies between Android.mk and Android.bp modules

2017-10-30 Thread Colin Cross
This is expected, Soong requires knowledge of all of its modules
dependencies.

On Mon, Oct 30, 2017 at 1:32 AM,  wrote:

> Hello,
>
> We are trying to create modules using BP that have dependencies to other
> modules defined in Android.mk.
>
> It seems that bp cannot link to the library (error: /Android.bp:4:1:
> "binaryinbp" depends on undefined module "libinmake"
>
> Is this expected behavior or some mistake on our side?
>
> Reproduction:
>
> Android.bp
> -
> cc_library_shared {
> name: "libinbp",
> }
>
> cc_binary {
> name: "binaryinbp",
> srcs: ["main.cpp"],
> shared_libs: [
> "libinbp",
> "libinmake"   // This is not possible, building gives error:
> binaryinbp" depends on undefined module "libinmake"
> ]
> }
>
>
>
> Android.mk
> -
> include $(CLEAR_VARS)
> LOCAL_MODULE := libinmake
> include $(BUILD_SHARED_LIBRARY)
>
> include $(CLEAR_VARS)
> LOCAL_SRC_FILES := main.cpp
> LOCAL_MODULE := binaryinmake
> LOCAL_SHARED_LIBRARIES := \
> libinmake \
> libinbp
> include $(BUILD_EXECUTABLE)
>
> Best regards,
> Krzysztof Wesolowski
>
> --
> --
> 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.


[android-building] Android Runtime QA

2017-10-30 Thread Anu Varshini
Hi 

I am currently running some tests which are given by google when we 
download the sources. eg : the tests under art/test folder . 
I need some information on how to execute those tests on device. Is there 
any forum/group where we get clear information on these tests.
I tried to follow the README provided, but still have some doubts in 
setting the environment. I need some help in understanding the testing flow.
Could someone guide me on this.

-- 
-- 
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.


[android-building] Dependencies between Android.mk and Android.bp modules

2017-10-30 Thread krzysztof . wesolowski
Hello,

We are trying to create modules using BP that have dependencies to other 
modules defined in Android.mk.

It seems that bp cannot link to the library (error: /Android.bp:4:1: 
"binaryinbp" depends on undefined module "libinmake"

Is this expected behavior or some mistake on our side?

Reproduction:

Android.bp
-
cc_library_shared {
name: "libinbp",
}

cc_binary {
name: "binaryinbp",
srcs: ["main.cpp"],
shared_libs: [
"libinbp",
"libinmake"   // This is not possible, building gives error: 
binaryinbp" depends on undefined module "libinmake"
]
}



Android.mk
-
include $(CLEAR_VARS)
LOCAL_MODULE := libinmake
include $(BUILD_SHARED_LIBRARY)

include $(CLEAR_VARS)
LOCAL_SRC_FILES := main.cpp
LOCAL_MODULE := binaryinmake
LOCAL_SHARED_LIBRARIES := \
libinmake \
libinbp
include $(BUILD_EXECUTABLE)

Best regards,
Krzysztof Wesolowski

-- 
-- 
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.