1
void DoSomething()
{   ...     
    m_a = new SomeContext<SOMETHING>(m_data);   
    ... 
}

Using Android Studio's Experimental Gradle Plugin, how do I pass the value of SOMETHING as "somevalue"? I think I should be using cppFlags.add('-DSOMETHING=somevalue') but this is not working.

OneCricketeer
  • 179,855
  • 19
  • 132
  • 245
user1128265
  • 2,891
  • 10
  • 29
  • 34

1 Answers1

0

Inside your model, android, ndk block, you can add

#set cppFlag
cppFlags.add("-DSOMETHING=awesome".toString())

And it will be used during compilation.

micha
  • 1,036
  • 8
  • 12