c092d3bdab
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 Review URL: https://codereview.chromium.org/657373002
49 lines
1.3 KiB
Python
49 lines
1.3 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', 'dm.gyp:dm', 'bench.gyp:*' ],
|
|
'dependencies': ['iOSShell.gyp:iOSShell' ],
|
|
}],
|
|
['skia_os == "mac" or skia_os == "linux"', {
|
|
'dependencies': [ 'nanomsg.gyp:*' ],
|
|
}],
|
|
[ 'skia_skip_gui',
|
|
{
|
|
'dependencies!': [
|
|
'SampleApp.gyp:SampleApp',
|
|
]
|
|
}
|
|
]
|
|
],
|
|
},
|
|
],
|
|
}
|