You can also refer to devel/gst branch of platform/upstream/gst-libav, we're 
changing the git submodule management with a simplified method.

Regards,
Yin, Yan

From: application-dev-boun...@lists.tizen.org 
[mailto:application-dev-boun...@lists.tizen.org] On Behalf Of Zhang, Qiang Z
Sent: Tuesday, September 17, 2013 4:50 PM
To: Tomasz Olszak; Kirill
Cc: application-dev@lists.tizen.org
Subject: Re: [Tizen Application-dev] problem with building a Tizen project 
which contains git submodule

Yes. gbs use git archive to generate tar ball, so gitmodule source will not 
contains in tarball.

Tomasz, give several ways, great, thanks.

The first and second way are preferred, as a reference, please see what 
gst-libva does:

$ git clone tizen:platform/upstream/gst-libav
$ git checkout tizen

Thanks
Qiang


From: 
application-dev-boun...@lists.tizen.org<mailto:application-dev-boun...@lists.tizen.org>
 
[mailto:application-dev-boun...@lists.tizen.org]<mailto:[mailto:application-dev-boun...@lists.tizen.org]>
 On Behalf Of Tomasz Olszak
Sent: Monday, September 16, 2013 10:31 PM
To: Kirill
Cc: application-dev@lists.tizen.org<mailto:application-dev@lists.tizen.org>
Subject: Re: [Tizen Application-dev] problem with building a Tizen project 
which contains git submodule

2013/9/16 Kirill <kasper_khar...@ukr.net<mailto:kasper_khar...@ukr.net>>
Hello Sirs,

I have a problem with building a project for Tizen which contains git submodule.

I develop a project for Tizen using EFL library. As a build system GBS is used.

The project uses Google C++ Testing Framework (googletest) for unit tests.
Sources of googletest are located within a project (in a subdirectory) and are
build with other sources.

When I put googletest sources directly into a subdirectory of the main
repository, everything is fine. But, when I add a googletest as a git submodule
inside the same directory, GBS build system can't find sources of googletest.

[    9s]   Cannot find source file:
[    9s]
[    9s]     
/home/abuild/rpmbuild/BUILD/org.tizen.orion-0.2.10/tests/googletest/src/gtest-all.cc

In both cases sources location are the same. As I understand, in the second case
GBS don't copy the sources from the submodule?

Is there any way to tell GBS how to use sources from a git submodule?

Thanks,
Kirill
_______________________________________________
Application-dev mailing list
Application-dev@lists.tizen.org<mailto:Application-dev@lists.tizen.org>
https://lists.tizen.org/listinfo/application-dev

gbs creates source package from you repository and unpacks it in gbs chroot so 
you clearly don't have submodule source in target build environment.

I think there are 3 approaches:
1. Add googletest sources to your repo
2. Add googletest tarball as Source* in you project spec file (I haven't done 
this yet so I don't know if it will work)
3. Create additional project( rpm package) with googletest sources and add 
BuildRequires(googletest sources) in your app package spec file. This way 
before building your app gbs will download and extract googletest sources in 
some place (described in googletest spec file).

--
regards / pozdrawiam, Tomasz Olszak
Qt for Tizen | http://qt-project.org/wiki/Tizen
Qt Certified Developer | http://qt-project.org<http://qt-project.org/>
http://linkedin.com/in/tolszak
_______________________________________________
Application-dev mailing list
Application-dev@lists.tizen.org
https://lists.tizen.org/listinfo/application-dev

Reply via email to