Title: Samsung Enterprise Portal mySingle

I am trying to use "--define" option of GBS:

  # gbs build -A i586 --define 'buildtype Debug'

 

The define(buildtype) will be transferred to the macro of 'rpmbuild'

  [    7s] -----------------------------------------------------------------
  [    7s] ----- building aul.spec (user abuild)
  [    7s] -----------------------------------------------------------------
  [    7s] -----------------------------------------------------------------
  [    7s] + exec rpmbuild \
  --define 'buildtype Debug' \
  --define '_srcdefattr (-,root,root)' \
  --nosignature --target=i586 \
  --define '_build_create_debug 1' \
  ....

And I will use the macro(buildtype) on .spec file:

  %cmake . -DCMAKE_BUILD_TYPE=%{buildtype}

Thanks.

 

------- Original Message -------

Sender : Jian-feng Ding<[email protected]>

Date : 2014-03-17 21:07 (GMT+09:00)

Title : Re: [Dev] [GBS] How to create a cmake cache entry?

 

Yes, I think the options for cmake will be covered by GBS. The most proper
place to update the build scriptlets in spec files. GBS is a tool to act as a
wrapper of `rpmbuild` with many complicated handling for Tizen specific
building environment setup.

thanks
- jf.ding

On Mon, Mar 17, 2014 at 01:38:45PM +0200, Raphael Kubo da Costa wrote:
> (Resending since my message apparently did not get through)
>
> DongHyuk Yang writes:
>
> > Created cache entry(CMAKE_BUILD_TYPE) successfully if I modified .spec
> > file like as following:
> >
> > %cmake . -DCMAKE_BUILD_TYPE=Debug
> >
> > But I actually wonder about cmake cache entries set by GBS.
> >
> > There are default cmake cache entries like as CMAKE_VERBOSE_MAKEFILE,
> > CMAKE_INSTALL_PREFIX and so on when using GBS.
> >
> > Are those default entries set by GBS?
> >
> > Can I modified those default cmake cache entries?
>
> These are entries set by CMake itself. You get the same thing if you
> build any CMake project locally without GBS.
>
> `cmake -DCMAKE_VERBOSE_MAKEFILE=1' etc works just fine too.
>
> Is there any specific problem you're trying to solve?
>
> _______________________________________________
> Dev mailing list
> [email protected]
> https://lists.tizen.org/listinfo/dev
_______________________________________________
Dev mailing list
[email protected]
https://lists.tizen.org/listinfo/dev

 

 

 

_______________________________________________
Dev mailing list
[email protected]
https://lists.tizen.org/listinfo/dev

Reply via email to