Proper way to set OFFICIAL_BUILD and GOOGLE_CHROME_BUILD?

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

Proper way to set OFFICIAL_BUILD and GOOGLE_CHROME_BUILD?

Postby gusverdun » Fri Mar 08, 2013 4:25 pm

In src/base/logging.h you can see the following:

// http://crbug.com/16512 is open for a real fix for this. For now, Windows
// uses OFFICIAL_BUILD and other platforms use the branding flag when NDEBUG is
// defined.
#if ( defined(OS_WIN) && defined(OFFICIAL_BUILD)) || \
(!defined(OS_WIN) && defined(NDEBUG) && defined(GOOGLE_CHROME_BUILD))
#define LOGGING_IS_OFFICIAL_BUILD 1
#else
#define LOGGING_IS_OFFICIAL_BUILD 0
#endif


LOGGING_IS_OFFICIAL_BUILD is used to compile out the CHECK, PCHECK, CHECK_OP, DLOG* and DCHECK* macros that are used throughout the Chromium code base.

Is there an easy gyp-y way to set these flags globally?
gusverdun
Techie
 
Posts: 25
Joined: Tue Jan 11, 2011 9:08 am

Re: Proper way to set OFFICIAL_BUILD and GOOGLE_CHROME_BUILD

Postby magreenblatt » Fri Mar 08, 2013 4:48 pm

See https://groups.google.com/a/chromium.or ... A91g3AP5Bs for defining OFFICIAL_BUILD. This may affect other behaviors as well so make sure to test thoroughly.
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm


Return to Support Forum

Who is online

Users browsing this forum: No registered users and 248 guests