Source

dbsdev / 3rdparty / chrome_event_trace / SConscript

Full commit
# coding: utf-8
# chrome event tracing lib build Sconscript
# $LastChangedDate: 2008-05-12 12:03:21 +0200 (Mon, 12 May 2008) $
# $LastChangedBy: dbacc $


import os, sys, fnmatch
import pyutils

Import('env')
env_local = env.Clone()

# include dirs
env_local.AppendUnique(CPPPATH = ['.'] )

# get list of files (recursive)
files = Glob('*.c*')

# build library
chrome_tracing_lib  = env_local.StaticLibrary('chrome_tracing',files)

# build library
if sys.platform == 'win32':
    prgfiles = Glob('win_test/*.c*')
    env_local.AppendUnique(LIBS=[chrome_tracing_lib])
    env_local.Program('chrome_tracing_test',prgfiles,PDB='chrome_tracing_test.pdb')


Return('chrome_tracing_lib')