Changeset be50d4b in pugl


Ignore:
Timestamp:
Nov 13, 2015, 5:34:15 PM (2 years ago)
Author:
David Robillard <d@…>
Branches:
master
Children:
4aa6e38
Parents:
2d0304f
Message:

Clean up wscript

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wscript

    r2d0304f rbe50d4b  
    22import glob
    33import os
     4import subprocess
    45import sys
     6import waflib.Logs as Logs
     7import waflib.Options as Options
     8import waflib.extras.autowaf as autowaf
    59
    6 from waflib.extras import autowaf as autowaf
    7 import waflib.Logs as Logs, waflib.Options as Options
    8 
    9 # Version of this package (even if built as a child)
     10# Library and package version (UNIX style major, minor, micro)
     11# major increment <=> incompatible changes
     12# minor increment <=> compatible changes (additions)
     13# micro increment <=> no interface changes
    1014PUGL_VERSION       = '0.2.0'
    1115PUGL_MAJOR_VERSION = '0'
    1216
    13 # Library version (UNIX style major, minor, micro)
    14 # major increment <=> incompatible changes
    15 # minor increment <=> compatible changes (additions)
    16 # micro increment <=> no interface changes
    17 # Pugl uses the same version number for both library and package
    18 PUGL_LIB_VERSION = PUGL_VERSION
    19 
    20 # Variables for 'waf dist'
    21 APPNAME = 'pugl'
    22 VERSION = PUGL_VERSION
    23 
    24 # Mandatory variables
    25 top = '.'
    26 out = 'build'
     17# Mandatory waf variables
     18APPNAME = 'pugl'        # Package name for waf dist
     19VERSION = PUGL_VERSION  # Package version for waf dist
     20top     = '.'           # Source directory
     21out     = 'build'       # Build directory
    2722
    2823def options(opt):
     
    136131                  name            = 'libpugl',
    137132                  target          = 'pugl-%s' % PUGL_MAJOR_VERSION,
    138                   vnum            = PUGL_LIB_VERSION,
     133                  vnum            = PUGL_VERSION,
    139134                  install_path    = '${LIBDIR}',
    140135                  defines         = defines,
     
    153148                  name            = 'libpugl_static',
    154149                  target          = 'pugl-%s' % PUGL_MAJOR_VERSION,
    155                   vnum            = PUGL_LIB_VERSION,
     150                  vnum            = PUGL_VERSION,
    156151                  install_path    = '${LIBDIR}',
    157152                  defines         = defines,
     
    194189
    195190def lint(ctx):
     191    "checks code for style issues"
    196192    subprocess.call('cpplint.py --filter=+whitespace/comments,-whitespace/tab,-whitespace/braces,-whitespace/labels,-build/header_guard,-readability/casting,-readability/todo,-build/include src/* pugl/*', shell=True)
    197193
     194# Alias .m files to be compiled the same as .c files, gcc will do the right thing.
    198195from waflib import TaskGen
    199196@TaskGen.extension('.m')
    200197def m_hook(self, node):
    201     "Alias .m files to be compiled the same as .c files, gcc will do the right thing."
    202198    return self.create_compiled_task('c', node)
Note: See TracChangeset for help on using the changeset viewer.