Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import org.gradle.language.cacheable.*
- apply plugin: 'base'
- def pangoIncludes = ['/usr/local/Cellar/glib/2.52.3/include/glib-2.0',
- '/usr/local/Cellar/glib/2.52.3/lib/glib-2.0/include',
- '/usr/local/opt/gettext/include',
- '/usr/local/Cellar/pcre/8.41/include',
- '/usr/local/Cellar/cairo/1.14.10/include/cairo',
- '/usr/local/Cellar/glib/2.52.3/include/glib-2.0',
- '/usr/local/Cellar/glib/2.52.3/lib/glib-2.0/include',
- '/usr/local/opt/gettext/include',
- '/usr/local/Cellar/pcre/8.41/include',
- '/usr/local/Cellar/pixman/0.34.0_1/include/pixman-1',
- '/usr/local/Cellar/fontconfig/2.12.4/include',
- '/usr/local/opt/freetype/include/freetype2',
- '/usr/local/Cellar/libpng/1.6.31/include/libpng16',
- '/usr/local/Cellar/harfbuzz/1.4.8_1/include/harfbuzz',
- '/usr/local/Cellar/glib/2.52.3/include/glib-2.0',
- '/usr/local/Cellar/glib/2.52.3/lib/glib-2.0/include',
- '/usr/local/opt/gettext/include',
- '/usr/local/Cellar/pcre/8.41/include',
- '/usr/local/Cellar/graphite2/1.3.10/include',
- '/usr/local/opt/freetype/include/freetype2',
- '/usr/local/Cellar/fontconfig/2.12.4/include',
- '/usr/local/opt/freetype/include/freetype2'].collect { new File(it) } + rootDir + file('pango')
- tasks.withType(AbstractNativeTask) {
- includeRoots += pangoIncludes
- gccExecutable = new File("/usr/bin/clang++")
- }
- task discoverInputs(type: PreprocessWithDepFiles) {
- source = fileTree('pango') {
- exclude "*win32*"
- exclude "*xft*"
- include "break-*"
- }
- dependencyFile = new File(buildDir, 'discoveredInputs.out')
- }
- task compile(type: CompileNative) {
- source = fileTree('pango') {
- exclude "*win32*"
- exclude "*xft*"
- include "break-*"
- }
- dependsOn(discoverInputs)
- dependencyFile = discoverInputs.dependencyFile
- outputDir = new File(buildDir, 'compiled')
- }
- task preprocess(type: PreprocessNative) {
- source = fileTree('pango') {
- exclude "*win32*"
- exclude "*xft*"
- include "break-*"
- }
- preprocessedSourcesDir = new File(buildDir, 'preprocessed')
- }
- task compilePreprocessed(type: CompileNative) {
- includeRoots = []
- source = preprocess.outputs
- outputDir = new File(buildDir, 'compiled')
- }
- task discoverInputsViaParser(type: DiscoverInputsForCompilation) {
- source = fileTree('pango') {
- exclude "*win32*"
- exclude "*xft*"
- include "break-*"
- }
- dependencyFile = new File(buildDir, 'discoveredInputsViaParser.out')
- }
- task compileParser(type: CompileNative) {
- source = fileTree('pango') {
- exclude "*win32*"
- exclude "*xft*"
- include "break-*"
- }
- dependsOn(discoverInputsViaParser)
- dependencyFile = discoverInputsViaParser.dependencyFile
- outputDir = new File(buildDir, 'compiledViaParser')
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement