3b27adef0a
Reason for revert: Causing breakages on Mac build. Original issue's description: > Make nanobench and dm be usable from Chromium build > > Move the app logic for each app as follows: > > <app>.cpp -- the file which contains main(). Embedders that compile > their own apps, such as ios shell, upcoming Chromium dm etc, do not use this. > > <app>_main.cpp -- the main logic of the Skia test application. This will be > used by Skia -compiled apps as well as embedder -compiled apps. > > <app>_main.h -- the API for the main logic. This will be > used by Skia -compiled apps as well as embedder -compiled apps. > > This way (the upcoming) Chromium dm can setup its Chromium-specific setup > in custom main(), and then call dm_main(), without the need of any > SK_BUILD_FOR_XXXX defines controlling whether the tool defines main or not. > > BUG=skia:2992 > > Committed: https://skia.googlesource.com/skia/+/c092d3bdab5f723576cc0346cea3ee282a9cb444 TBR=mtklein@chromium.org,mtklein@google.com,borenet@google.com,kkinnunen@nvidia.com NOTREECHECKS=true NOTRY=true BUG=skia:2992 Review URL: https://codereview.chromium.org/724073002
49 lines
1.2 KiB
Python
49 lines
1.2 KiB
Python
# Build ALMOST everything provided by Skia; this should be the default target.
|
|
#
|
|
# This omits the following targets that many developers won't want to build:
|
|
# - debugger: this requires QT to build
|
|
#
|
|
{
|
|
'variables': {
|
|
'skia_skip_gui%': 0,
|
|
},
|
|
'targets': [
|
|
{
|
|
'target_name': 'most',
|
|
'type': 'none',
|
|
'dependencies': [
|
|
# The minimal set of static libraries for basic Skia functionality.
|
|
'skia_lib.gyp:skia_lib',
|
|
|
|
'bench.gyp:*',
|
|
'gm.gyp:gm',
|
|
'SampleApp.gyp:SampleApp',
|
|
'tools.gyp:tools',
|
|
'pathops_unittest.gyp:*',
|
|
'pathops_skpclip.gyp:*',
|
|
# 'pdfviewer.gyp:pdfviewer',
|
|
'dm.gyp:dm',
|
|
],
|
|
'conditions': [
|
|
['skia_os == "android"', {
|
|
'dependencies': [ 'android_system.gyp:SampleApp_APK' ],
|
|
}],
|
|
['skia_os == "ios"', {
|
|
'dependencies!': [ 'SampleApp.gyp:SampleApp' ],
|
|
'dependencies': ['iOSShell.gyp:iOSShell' ],
|
|
}],
|
|
['skia_os == "mac" or skia_os == "linux"', {
|
|
'dependencies': [ 'nanomsg.gyp:*' ],
|
|
}],
|
|
[ 'skia_skip_gui',
|
|
{
|
|
'dependencies!': [
|
|
'SampleApp.gyp:SampleApp',
|
|
]
|
|
}
|
|
]
|
|
],
|
|
},
|
|
],
|
|
}
|