コード例 #1
0
def create(target):
	my_module = module.Module(__file__, 'estbase-utils', 'LIBRARY')
	
	my_module.add_module_depend(['eststring'])
	
	my_module.add_export_path(os.path.join(tools.get_current_path(__file__), "speech_tools/include"))
	
	my_module.compile_flags('c++', "-fno-implicit-templates")
	my_module.add_src_file([
		"speech_tools/utils/cmd_line.cc",
		"speech_tools/utils/util_io.cc",
		"speech_tools/utils/filetrans.cc",
		"speech_tools/utils/cmd_line_aux.cc",
		"speech_tools/utils/EST_swapping.cc",
		"speech_tools/utils/est_file.cc",
		"speech_tools/utils/EST_cutils.c",
		"speech_tools/utils/EST_error.c",
		"speech_tools/utils/walloc.c",
		"speech_tools/utils/system_specific_unix.c"
		])
	my_module.compile_flags('c++', "-DINSTANTIATE_TEMPLATES")
	my_module.compile_flags('c++', "-DFTNAME='Festival Speech Tools Library'")
	my_module.compile_flags('c++', "-DFTLIBDIRC='" + tools.get_current_path(__file__) + "/festival/lib '")
	my_module.compile_flags('c++', "-DFTVERSION='2.4'")
	my_module.compile_flags('c++', "-DFTSTATE='release'")
	my_module.compile_flags('c++', "-DFTDATE='December 2014'")
	my_module.compile_flags('c++', "-DFTSTATE='release'")
	my_module.compile_flags('c++', '-DFTOSTYPE=\\"unknown_DebianGNULinux\\"')
	
	return my_module
コード例 #2
0
def create(target):
	my_module = module.Module(__file__, 'estbase-rxp', 'LIBRARY')
	
	my_module.add_module_depend(['eststring'])
	
	my_module.add_src_file([
		"speech_tools/rxp/charset.c",
		"speech_tools/rxp/ctype16.c",
		"speech_tools/rxp/dtd.c",
		"speech_tools/rxp/string16.c",
		"speech_tools/rxp/url.c",
		"speech_tools/rxp/ctype16.c",
		"speech_tools/rxp/input.c",
		"speech_tools/rxp/stdio16.c",
		"speech_tools/rxp/system.c",
		"speech_tools/rxp/xmlparser.c",
		"speech_tools/rxp/XML_Parser.cc"
		])
	
	my_module.add_export_path(os.path.join(tools.get_current_path(__file__), "speech_tools/include"))
	my_module.add_export_path(os.path.join(tools.get_current_path(__file__), "speech_tools/include/rxp"))
	my_module.compile_flags('c', "-DCHAR_SIZE=8")
	my_module.compile_flags('c++', "-DINSTANTIATE_TEMPLATES")
	
	return my_module
コード例 #3
0
def create(target, module_name):
    my_module = module.Module(__file__, module_name, get_type())
    my_module.add_src_file(["appl/Main.cpp", "appl/debug.cpp", "appl/Windows.cpp", "appl/widget/VectorDisplay.cpp"])
    my_module.add_module_depend(["ewol"])
    my_module.compile_flags("c++", ['-DPROJECT_NAME="\\"' + my_module.name + '\\""'])
    my_module.add_path(tools.get_current_path(__file__))
    return my_module
コード例 #4
0
def create(target):
	my_module = module.Module(__file__, 'estools-siod', 'LIBRARY')
	
	my_module.add_module_depend(['eststring'])
	
	my_module.add_src_file([
		"speech_tools/siod/slib.cc",
		"speech_tools/siod/slib_core.cc",
		"speech_tools/siod/slib_doc.cc",
		"speech_tools/siod/slib_file.cc",
		"speech_tools/siod/slib_format.cc",
		"speech_tools/siod/slib_list.cc",
		"speech_tools/siod/slib_math.cc",
		"speech_tools/siod/slib_sys.cc",
		"speech_tools/siod/slib_server.cc",
		"speech_tools/siod/slib_str.cc",
		"speech_tools/siod/slib_xtr.cc",
		"speech_tools/siod/slib_repl.cc",
		"speech_tools/siod/slib_python.cc",
		"speech_tools/siod/io.cc",
		"speech_tools/siod/trace.cc",
		"speech_tools/siod/siod.cc",
		"speech_tools/siod/siod_est.cc",
		"speech_tools/siod/siodeditline.c",
		"speech_tools/siod/el_complete.c",
		"speech_tools/siod/editline.c",
		"speech_tools/siod/el_sys_unix.c",
		])
	
	my_module.add_export_path(os.path.join(tools.get_current_path(__file__), "speech_tools/include"))
	my_module.compile_flags('c++', "-fno-implicit-templates")
	my_module.compile_flags('c++', "-DINSTANTIATE_TEMPLATES")
	my_module.compile_flags('c', "-DSUPPORT_EDITLINE")
	
	return my_module
コード例 #5
0
def create(target):
	my_module = module.Module(__file__, 'estools-sigpr', 'LIBRARY')
	
	my_module.add_module_depend(['eststring'])
	
	my_module.add_export_path(os.path.join(tools.get_current_path(__file__), "speech_tools/include"))
	my_module.compile_flags('c++', "-fno-implicit-templates")
	my_module.compile_flags('c++', "-DINSTANTIATE_TEMPLATES")
	
	my_module.add_src_file([
		"speech_tools/sigpr/EST_Window.cc",
		"speech_tools/sigpr/delta.cc",
		"speech_tools/sigpr/filter.cc",
		"speech_tools/sigpr/sigpr_frame.cc",
		"speech_tools/sigpr/sigpr_utt.cc",
		"speech_tools/sigpr/pitchmark.cc",
		"speech_tools/sigpr/spectrogram.cc",
		"speech_tools/sigpr/misc.cc",
		"speech_tools/sigpr/fft.cc"
		])
	
	my_module.add_src_file([
		"speech_tools/sigpr/pda/pcb_smoother.cc",
		"speech_tools/sigpr/pda/smooth_pda.cc",
		"speech_tools/sigpr/pda/pda.cc",
		"speech_tools/sigpr/pda/srpd1.3.cc"
		])
	
	
	return my_module
コード例 #6
0
def create(target):
	my_module = module.Module(__file__, 'estools-stats', 'LIBRARY')
	
	my_module.add_module_depend(['eststring'])
	
	my_module.add_export_path(os.path.join(tools.get_current_path(__file__), "speech_tools/include"))
	my_module.compile_flags('c++', "-fno-implicit-templates")
	my_module.compile_flags('c++', "-DINSTANTIATE_TEMPLATES")
	
	my_module.add_src_file([
		"speech_tools/stats/EST_cluster.cc",
		"speech_tools/stats/EST_multistats.cc",
		"speech_tools/stats/confusion.cc",
		"speech_tools/stats/EST_Discrete.cc",
		"speech_tools/stats/EST_DProbDist.cc",
		"speech_tools/stats/EST_ols.cc",
		"speech_tools/stats/EST_viterbi.cc",
		"speech_tools/stats/dynamic_program.cc"
		])
	
	my_module.add_src_file([
		"speech_tools/stats/wagon/dlist.cc",
		"speech_tools/stats/wagon/wagon_aux.cc",
		"speech_tools/stats/wagon/wagonint.cc",
		"speech_tools/stats/wagon/wagon.cc"
		])
	
	my_module.add_src_file([
		"speech_tools/stats/kalman_filter/EST_kalman.cc",
		])
	
	return my_module
コード例 #7
0
ファイル: lutin_egami.py プロジェクト: chagge/egami
def create(target):
	# module name is 'edn' and type binary.
	myModule = module.Module(__file__, 'egami', 'LIBRARY')
	
	# add extra compilation flags :
	myModule.add_extra_compile_flags()
	# add the file to compile:
	myModule.add_src_file([
		'egami/Image.cpp',
		'egami/ImageMono.cpp',
		'egami/egami.cpp',
		'egami/debug.cpp',
		'egami/wrapperPNG.cpp',
		'egami/wrapperSVG.cpp',
		'egami/wrapperBMP.cpp',
		'egami/wrapperEDF.cpp'])
	
	# name of the dependency
	myModule.add_module_depend(['etk', 'png', 'esvg', 'edtaa3'])
	
	myModule.compile_flags('c++', [
		'-Wno-write-strings',
		'-Wall'])
	
	myModule.add_export_path(tools.get_current_path(__file__))
	
	# add the currrent module at the 
	return myModule
コード例 #8
0
def create(target):
	my_module = module.Module(__file__, 'estools-speech_class', 'LIBRARY')
	
	my_module.add_module_depend(['eststring'])
	
	my_module.add_export_path(os.path.join(tools.get_current_path(__file__), "speech_tools/include"))
	my_module.compile_flags('c++', "-fno-implicit-templates")
	my_module.compile_flags('c++', "-DINSTANTIATE_TEMPLATES")
	
	my_module.add_src_file([
		"speech_tools/speech_class/EST_Wave.cc",
		"speech_tools/speech_class/EST_track_aux.cc",
		"speech_tools/speech_class/EST_wave_temp.cc",
		"speech_tools/speech_class/EST_wave_cuts.cc",
		"speech_tools/speech_class/ssff.cc",
		"speech_tools/speech_class/esps_io.cc",
		"speech_tools/speech_class/esps_utils.cc",
		"speech_tools/speech_class/EST_wave_io.cc",
		"speech_tools/speech_class/EST_wave_utils.cc",
		"speech_tools/speech_class/EST_TrackMap.cc",
		"speech_tools/speech_class/EST_Track.cc",
		"speech_tools/speech_class/wave_t.cc",
		"speech_tools/speech_class/track_t.cc",
		"speech_tools/speech_class/EST_wave_aux.cc",
		"speech_tools/speech_class/EST_TrackFile.cc",
		"speech_tools/speech_class/EST_WaveFile.cc"
		])
	
	
	return my_module
コード例 #9
0
def create(target):
	my_module = module.Module(__file__, 'eststring', 'LIBRARY')
	my_module.add_src_file([
		"speech_tools/base_class/string/EST_String.cc",
		"speech_tools/base_class/string/EST_Regex.cc",
		"speech_tools/base_class/string/EST_Chunk.cc",
		"speech_tools/base_class/string/regexp.cc",
		"speech_tools/base_class/string/regerror.c",
		"speech_tools/base_class/string/regsub.c",
		"speech_tools/base_class/string/EST_strcasecmp.c",
		])
	
	my_module.add_export_path(os.path.join(tools.get_current_path(__file__), "speech_tools/include"))
	my_module.add_export_path(os.path.join(tools.get_current_path(__file__), "speech_tools/base_class/string/"))
	my_module.compile_flags('c++', "-fno-implicit-templates")
	
	return my_module
コード例 #10
0
ファイル: lutin_jus-gateway.py プロジェクト: atria-soft/zeus
def create(target, module_name):
	my_module = module.Module(__file__, module_name, get_type())
	my_module.add_export_path(tools.get_current_path(__file__))
	my_module.add_module_depend(['jus'])
	my_module.add_src_file([
	    'appl/debug.cpp',
	    'appl/main.cpp'
	    ])
	return my_module
コード例 #11
0
ファイル: lutin_jus-picture.py プロジェクト: atria-soft/zeus
def create(target, module_name):
	my_module = module.Module(__file__, module_name, get_type())
	my_module.add_export_path(tools.get_current_path(__file__))
	my_module.add_module_depend(['jus'])
	my_module.add_src_file([
	    'appl/debug.cpp',
	    'appl/main.cpp'
	    ])
	my_module.add_export_flag('c++', "-DSERVICE_NAME=\"\\\"" + module_name[4:] + "\\\"\"")
	return my_module
コード例 #12
0
ファイル: lutin_jus.py プロジェクト: atria-soft/zeus
def create(target, module_name):
	my_module = module.Module(__file__, module_name, get_type())
	my_module.add_module_depend(['etk', 'enet', 'ememory', 'eproperty', 'esignal', 'ejson'])
	my_module.add_src_file([
	    'jus/debug.cpp'
	    ])
	my_module.add_path(tools.get_current_path(__file__))
	my_module.add_src_file([
	    'jus/AbstractFunction.cpp',
	    'jus/AbstractFunctionTypeDirect.cpp',
	    'jus/AbstractFunctionTypeClass.cpp',
	    'jus/FutureBase.cpp',
	    'jus/Future.cpp',
	    'jus/File.cpp',
	    'jus/Buffer.cpp',
	    'jus/BufferConvertBinaryToJson.cpp',
	    'jus/ParamType.cpp',
	    'jus/Client.cpp',
	    'jus/GateWay.cpp',
	    'jus/GateWayService.cpp',
	    'jus/GateWayClient.cpp',
	    'jus/RemoteProcessCall.cpp',
	    'jus/Service.cpp',
	    'jus/ServiceRemote.cpp',
	    'jus/TcpString.cpp',
	    'jus/mineType.cpp',
	    ])
	my_module.add_header_file([
	    'jus/AbstractFunction.h',
	    'jus/AbstractFunctionTypeDirect.h',
	    'jus/AbstractFunctionTypeClass.h',
	    'jus/FutureData.h',
	    'jus/FutureBase.h',
	    'jus/Future.h',
	    'jus/File.h',
	    'jus/Buffer.h',
	    'jus/connectionMode.h',
	    'jus/ParamType.h',
	    'jus/debug.h',
	    'jus/Client.h',
	    'jus/GateWay.h',
	    'jus/GateWayService.h',
	    'jus/GateWayClient.h',
	    'jus/RemoteProcessCall.h',
	    'jus/Service.h',
	    'jus/ServiceRemote.h',
	    'jus/TcpString.h',
	    'jus/mineType.h',
	    ])
	if target.config["compilator"] == "clang":
		my_module.add_export_flag('c++', "-Wno-unsequenced")
	# build in C++ mode
	my_module.compile_version("c++", 2011)
	return my_module
コード例 #13
0
ファイル: lutin_001_HelloWord.py プロジェクト: biddyweb/ewol
def create(target, module_name):
	my_module = module.Module(__file__, module_name, get_type())
	my_module.add_src_file([
		'appl/Main.cpp',
		'appl/debug.cpp',
		'appl/Windows.cpp',
		])
	my_module.add_module_depend(['ewol'])
	my_module.compile_flags('c++', [
		"-DPROJECT_NAME=\"\\\""+my_module.name+"\\\"\""])
	my_module.add_path(tools.get_current_path(__file__))
	return my_module
コード例 #14
0
def create(target, module_name):
	my_module = module.Module(__file__, module_name, get_type())
	my_module.add_src_file([
		'appl/Main.cpp',
		'appl/debug.cpp',
		'appl/WidgetDisplay.cpp',
		'appl/Windows.cpp',
		])
	my_module.add_module_depend(['ewol'])
	my_module.compile_flags('c++', [
		"-DPROJECT_NAME=\"\\\""+my_module.name+"\\\"\""
		])
	my_module.copy_path('data/SnowFlake.svg','')
	my_module.add_path(tools.get_current_path(__file__))
	now = datetime.datetime.now()
	versionID=str(now.year-2013)+"."+str(now.month)+"."+str(now.day)
	# set the package properties :
	my_module.pkg_set("VERSION", versionID)
	my_module.pkg_set("COMPAGNY_TYPE", get_compagny_type())
	my_module.pkg_set("COMPAGNY_NAME", get_compagny_name())
	my_module.pkg_set("MAINTAINER", get_maintainer())
	my_module.pkg_set("ICON", tools.get_current_path(__file__) + "/../data/icon.png")
	my_module.pkg_set("SECTION", "example")
	my_module.pkg_set("PRIORITY", "extra")
	my_module.pkg_set("DESCRIPTION", get_desc())
	my_module.pkg_set("NAME", get_name())
	
	my_module.pkg_set("ANDROID_APPL_TYPE", "WALLPAPER")
	
	#for the exemple : 
	my_module.pkg_add("ANDROID_WALLPAPER_PROPERTIES", ["list", "testpattern", "Select test pattern", "Choose which test pattern to display", \
	                                                         [ ["key","value display"],\
	                                                           ["key2","value display 2"]\
	                                                         ] \
	                                                ])
	my_module.pkg_add("ANDROID_WALLPAPER_PROPERTIES", ["bool", "movement", "Motion", "Apply movement to test pattern", ["Moving test pattern", "Still test pattern"]])
	
	
	# add the currrent module at the 
	return my_module
コード例 #15
0
def create(target):
    my_module = module.Module(__file__, "estools-intonation", "LIBRARY")

    my_module.add_module_depend(["eststring"])

    my_module.add_export_path(os.path.join(tools.get_current_path(__file__), "speech_tools/include"))
    my_module.compile_flags("c++", "-fno-implicit-templates")
    my_module.compile_flags("c++", "-DINSTANTIATE_TEMPLATES")

    my_module.add_src_file(
        [
            "speech_tools/intonation/tilt/tilt_analysis.cc",
            "speech_tools/intonation/tilt/tilt_synthesis.cc",
            "speech_tools/intonation/tilt/tilt_utils.cc",
        ]
    )

    return my_module
コード例 #16
0
ファイル: lutin_ushare.py プロジェクト: HeeroYui/ushare-
def create(target, module_name):
	my_module = module.Module(__file__, module_name, get_type())
	my_module.add_extra_compile_flags()
	my_module.add_src_file([
		'appl/http.cpp',
		'appl/services.cpp',
		'appl/ushare.cpp',
		'appl/content.cpp',
		'appl/trace.cpp',
		'appl/cms.cpp',
		'appl/redblack.cpp',
		'appl/util_iconv.cpp',
		'appl/osdep.cpp',
		'appl/mime.cpp',
		'appl/cfgparser.cpp',
		'appl/metadata.cpp',
		'appl/msr.cpp',
		'appl/cds.cpp',
		'appl/presentation.cpp',
		'appl/buffer.cpp',
		'appl/ctrl_telnet.cpp'
		])
	my_module.add_path(tools.get_current_path(__file__))
	my_module.compile_flags('c', [
		"-D_LARGEFILE_SOURCE",
		"-D_FILE_OFFSET_BITS=64",
		"-D_REENTRANT",
		"-D_GNU_SOURCE",
		"-DHAVE_SETLOCALE",
		"-DHAVE_IFADDRS_H",
		"-DHAVE_LANGINFO_CODESET",
		"-DHAVE_ICONV",
		"-pthread",
		"-I/usr/include/upnp"
		])
	my_module.compile_flags('link', [
		"-lixml",
		"-lthreadutil",
		"-lpthread",
		"-lupnp",
		"-pthread"
		])
	return my_module
コード例 #17
0
def create(target):
	my_module = module.Module(__file__, 'estools-grammar', 'LIBRARY')
	
	my_module.add_module_depend(['eststring', 'estools-stats'])
	
	my_module.add_export_path(os.path.join(tools.get_current_path(__file__), "speech_tools/include"))
	my_module.compile_flags('c++', "-fno-implicit-templates")
	my_module.compile_flags('c++', "-DINSTANTIATE_TEMPLATES")
	
	my_module.add_src_file([
		"speech_tools/grammar/scfg/EST_SCFG.cc",
		"speech_tools/grammar/scfg/EST_SCFG_inout.cc",
		"speech_tools/grammar/scfg/EST_SCFG_Chart.cc"
		])
	
	my_module.add_src_file([
		"speech_tools/grammar/wfst/EST_WFST.cc",
		"speech_tools/grammar/wfst/wfst_regex.cc",
		"speech_tools/grammar/wfst/wfst_ops.cc",
		"speech_tools/grammar/wfst/wfst_transduce.cc",
		"speech_tools/grammar/wfst/kkcompile.cc",
		"speech_tools/grammar/wfst/wfst_aux.cc",
		"speech_tools/grammar/wfst/ltscompile.cc",
		"speech_tools/grammar/wfst/rgcompile.cc",
		"speech_tools/grammar/wfst/tlcompile.cc",
		"speech_tools/grammar/wfst/wfst_train.cc"
		])
	
	my_module.add_src_file([
		"speech_tools/grammar/ngram/lattice_t.cc",
		"speech_tools/grammar/ngram/EST_Ngrammar.cc",
		"speech_tools/grammar/ngram/ngrammar_io.cc",
		"speech_tools/grammar/ngram/ngrammar_aux.cc",
		"speech_tools/grammar/ngram/ngrammar_utils.cc",
		"speech_tools/grammar/ngram/EST_lattice.cc",
		"speech_tools/grammar/ngram/EST_lattice_io.cc",
		"speech_tools/grammar/ngram/freqsmooth.cc",
		"speech_tools/grammar/ngram/EST_PST.cc"
		])
	
	return my_module
コード例 #18
0
ファイル: lutin_esvg.py プロジェクト: chagge/esvg
def create(target):
	myModule = module.Module(__file__, 'esvg', 'LIBRARY')
	myModule.add_module_depend(['etk', 'agg', 'exml'])
	myModule.add_src_file([
		'esvg/Base.cpp',
		'esvg/Circle.cpp',
		'esvg/debug.cpp',
		'esvg/Ellipse.cpp',
		'esvg/Group.cpp',
		'esvg/Line.cpp',
		'esvg/esvg.cpp',
		'esvg/Path.cpp',
		'esvg/Polygon.cpp',
		'esvg/Polyline.cpp',
		'esvg/Rectangle.cpp',
		'esvg/Renderer.cpp',
		'esvg/Stroking.cpp',
		'esvg/Text.cpp'])
	myModule.add_export_path(tools.get_current_path(__file__))
	# add the currrent module at the 
	return myModule
コード例 #19
0
def create(target):
	my_module = module.Module(__file__, 'estbase-ling_class', 'LIBRARY')
	
	my_module.add_module_depend(['eststring', 'estbase-base_class', 'estools-stats', 'estbase-rxp'])
	
	my_module.add_export_path(os.path.join(tools.get_current_path(__file__), "speech_tools/include"))
	my_module.compile_flags('c++', "-fno-implicit-templates")
	
	my_module.add_src_file([
		"speech_tools/ling_class/EST_Item.cc",
		"speech_tools/ling_class/EST_Item_Content.cc",
		"speech_tools/ling_class/item_aux.cc",
		"speech_tools/ling_class/EST_relation_aux.cc",
		"speech_tools/ling_class/EST_relation_track.cc",
		"speech_tools/ling_class/relation_io.cc",
		"speech_tools/ling_class/EST_relation_compare.cc",
		"speech_tools/ling_class/standard_feature_functions.cc",
		"speech_tools/ling_class/EST_Relation_mls.cc",
		"speech_tools/ling_class/EST_item_aux.cc",
		"speech_tools/ling_class/EST_item_content_aux.cc",
		"speech_tools/ling_class/EST_Relation.cc",
		"speech_tools/ling_class/EST_UtteranceFile.cc",
		"speech_tools/ling_class/genxml.cc",
		"speech_tools/ling_class/EST_utterance_aux.cc",
		"speech_tools/ling_class/ling_class_init.cc",
		"speech_tools/ling_class/ling_t.cc",
		"speech_tools/ling_class/EST_Utterance.cc",
		"speech_tools/ling_class/item_feats.cc",
		"speech_tools/ling_class/apml.cc",
		"speech_tools/ling_class/solexml.cc",
		"speech_tools/ling_class/EST_FeatureFunctionPackage.cc",
		"speech_tools/ling_class/EST_FeatureFunctionContext.cc"
		])
	
	my_module.compile_flags('c++', "-DINCLUDE_XML_FORMATS")
	my_module.compile_flags('c++', '-DESTLIBDIR=\\"~/festival_data\\"')
	my_module.compile_flags('c++', "-DINSTANTIATE_TEMPLATES")
	
	return my_module
コード例 #20
0
def create(target):
	my_module = module.Module(__file__, 'estbase-audio', 'LIBRARY')
	
	my_module.add_module_depend(['eststring', 'estbase-base_class'])
	
	my_module.add_export_path(os.path.join(tools.get_current_path(__file__), "speech_tools/include"))
	
	my_module.add_src_file([
		"speech_tools/audio/gen_audio.cc",
		"speech_tools/audio/nas.cc",
		"speech_tools/audio/esd.cc",
		"speech_tools/audio/sun16audio.cc",
		"speech_tools/audio/mplayer.cc",
		"speech_tools/audio/win32audio.cc",
		"speech_tools/audio/irixaudio.cc",
		"speech_tools/audio/os2audio.cc",
		"speech_tools/audio/macosxaudio.cc",
		"speech_tools/audio/linux_sound.cc"
		])
	my_module.compile_flags('c++', "-fno-implicit-templates")
	my_module.compile_flags('c++', "-DSUPPORT_ALSALINUX")
	my_module.compile_flags('c++', "-DINSTANTIATE_TEMPLATES")
	return my_module
コード例 #21
0
def create(target):
	my_module = module.Module(__file__, 'estbase-base_class', 'LIBRARY')
	
	my_module.add_module_depend(['eststring'])
	
	my_module.add_export_path(os.path.join(tools.get_current_path(__file__), "speech_tools/include"))
	my_module.compile_flags('c++', "-fno-implicit-templates")
	my_module.add_src_file([
		"speech_tools/base_class/EST_UList.cc",
		"speech_tools/base_class/EST_Option.cc",
		"speech_tools/base_class/EST_StringTrie.cc",
		"speech_tools/base_class/EST_Token.cc",
		"speech_tools/base_class/vec_mat_aux.cc",
		"speech_tools/base_class/EST_Pathname_unix.cc",
		"speech_tools/base_class/THash_aux.cc",
		"speech_tools/base_class/EST_FMatrix.cc",
		"speech_tools/base_class/EST_Complex.cc",
		"speech_tools/base_class/EST_Val.cc",
		"speech_tools/base_class/EST_matrix_support.cc",
		"speech_tools/base_class/rateconv.cc",
		"speech_tools/base_class/EST_IMatrix.cc",
		"speech_tools/base_class/EST_SMatrix.cc",
		"speech_tools/base_class/EST_DMatrix.cc",
		"speech_tools/base_class/vec_mat_aux_d.cc",
		"speech_tools/base_class/EST_FeatureData.cc",
		"speech_tools/base_class/EST_slist_aux.cc",
		"speech_tools/base_class/EST_svec_aux.cc",
		"speech_tools/base_class/EST_ilist_aux.cc",
		"speech_tools/base_class/EST_features_aux.cc",
		"speech_tools/base_class/EST_features_io.cc",
		"speech_tools/base_class/vec_mat_aux_i.cc",
		"speech_tools/base_class/EST_Featured.cc",
		"speech_tools/base_class/EST_Features.cc",
		])
	
	my_module.add_src_file([
		"speech_tools/base_class/inst_tmpl/list_i_t.cc",
		"speech_tools/base_class/inst_tmpl/list_si_t.cc",
		"speech_tools/base_class/inst_tmpl/list_f_t.cc",
		"speech_tools/base_class/inst_tmpl/list_d_t.cc",
		"speech_tools/base_class/inst_tmpl/list_c_t.cc",
		"speech_tools/base_class/inst_tmpl/list_s_t.cc",
		"speech_tools/base_class/inst_tmpl/list_val_t.cc",
		"speech_tools/base_class/inst_tmpl/list_li_t.cc",
		"speech_tools/base_class/inst_tmpl/list_vs_t.cc",
		"speech_tools/base_class/inst_tmpl/list_vi_t.cc",
		"speech_tools/base_class/inst_tmpl/matrix_i_t.cc",
		"speech_tools/base_class/inst_tmpl/matrix_si_t.cc",
		"speech_tools/base_class/inst_tmpl/matrix_f_t.cc",
		"speech_tools/base_class/inst_tmpl/matrix_d_t.cc",
		"speech_tools/base_class/inst_tmpl/matrix_s_t.cc",
		"speech_tools/base_class/inst_tmpl/matrix_val_t.cc",
		"speech_tools/base_class/inst_tmpl/vector_i_t.cc",
		"speech_tools/base_class/inst_tmpl/vector_si_t.cc",
		"speech_tools/base_class/inst_tmpl/vector_f_t.cc",
		"speech_tools/base_class/inst_tmpl/vector_d_t.cc",
		"speech_tools/base_class/inst_tmpl/vector_c_t.cc",
		"speech_tools/base_class/inst_tmpl/vector_s_t.cc",
		"speech_tools/base_class/inst_tmpl/vector_val_t.cc",
		"speech_tools/base_class/inst_tmpl/vector_ls_t.cc",
		"speech_tools/base_class/inst_tmpl/vector_fvector_t.cc",
		"speech_tools/base_class/inst_tmpl/vector_fmatrix_t.cc",
		"speech_tools/base_class/inst_tmpl/vector_dvector_t.cc",
		"speech_tools/base_class/inst_tmpl/vector_dmatrix_t.cc",
		"speech_tools/base_class/inst_tmpl/kvl_fi_t.cc",
		"speech_tools/base_class/inst_tmpl/kvl_ii_t.cc",
		"speech_tools/base_class/inst_tmpl/kvl_sd_t.cc",
		"speech_tools/base_class/inst_tmpl/kvl_sf_t.cc",
		"speech_tools/base_class/inst_tmpl/kvl_ss_t.cc",
		"speech_tools/base_class/inst_tmpl/kvl_si_t.cc",
		"speech_tools/base_class/inst_tmpl/kvl_sv_t.cc",
		"speech_tools/base_class/inst_tmpl/kvl_rs_t.cc",
		"speech_tools/base_class/inst_tmpl/kvl_vpi_t.cc",
		"speech_tools/base_class/inst_tmpl/hash_fi_t.cc",
		"speech_tools/base_class/inst_tmpl/hash_ii_t.cc",
		"speech_tools/base_class/inst_tmpl/hash_sd_t.cc",
		"speech_tools/base_class/inst_tmpl/hash_sf_t.cc",
		"speech_tools/base_class/inst_tmpl/hash_ss_t.cc",
		"speech_tools/base_class/inst_tmpl/hash_si_t.cc",
		"speech_tools/base_class/inst_tmpl/hash_sv_t.cc",
		"speech_tools/base_class/inst_tmpl/hash_iv_t.cc",
		"speech_tools/base_class/inst_tmpl/hash_sfmp_t.cc",
		"speech_tools/base_class/inst_tmpl/hash_srp.cc",
		"speech_tools/base_class/inst_tmpl/tbuffer_t.cc",
		"speech_tools/base_class/inst_tmpl/deq_s_t.cc",
		"speech_tools/base_class/inst_tmpl/deq_i_t.cc"
		])
	
	my_module.compile_flags('c++', "-DINSTANTIATE_TEMPLATES")
	
	return my_module
コード例 #22
0
def create(target):
    my_module = module.Module(__file__, "festival", "LIBRARY")

    # my_module.add_module_depend(['estools', 'estbase', 'eststring'])
    my_module.add_module_depend(
        [
            "estbase-audio",
            "estbase-base_class",
            "estbase-ling_class",
            "estbase-rxp",
            "estbase-utils",
            "estools-grammar",
            "estools-intonation",
            "estools-sigpr",
            "estools-siod",
            "estools-speech_class",
            "estools-stats",
        ]
    )

    my_module.add_src_file(
        [
            "festival/src/arch/festival/festival.cc",
            "festival/src/arch/festival/web.cc",
            "festival/src/arch/festival/linreg.cc",
            "festival/src/arch/festival/Phone.cc",
            "festival/src/arch/festival/wave.cc",
            "festival/src/arch/festival/tcl.cc",
            "festival/src/arch/festival/audspio.cc",
            "festival/src/arch/festival/utterance.cc",
            "festival/src/arch/festival/viterbi.cc",
            "festival/src/arch/festival/features.cc",
            "festival/src/arch/festival/wagon_interp.cc",
            "festival/src/arch/festival/wfst.cc",
            "festival/src/arch/festival/server.cc",
            "festival/src/arch/festival/client.cc",
            "festival/src/arch/festival/ngram.cc",
            "festival/src/arch/festival/ModuleDescription.cc",
        ]
    )

    my_module.add_src_file(
        [
            "festival/src/modules/base/parameters.cc",
            "festival/src/modules/base/phrasify.cc",
            "festival/src/modules/base/phrinfo.cc",
            "festival/src/modules/base/postlex.cc",
            "festival/src/modules/base/word.cc",
            "festival/src/modules/base/pos.cc",
            "festival/src/modules/base/modules.cc",
            "festival/src/modules/base/ff.cc",
            "festival/src/modules/base/module_support.cc",
        ]
    )

    # all plugins:
    my_module.add_src_file(
        [
            "festival/src/modules/UniSyn/us_unit.cc",
            "festival/src/modules/UniSyn/us_prosody.cc",
            "festival/src/modules/UniSyn/ps_synthesis.cc",
            "festival/src/modules/UniSyn/us_mapping.cc",
            "festival/src/modules/UniSyn/UniSyn.cc",
            "festival/src/modules/UniSyn/us_features.cc",
        ]
    )

    my_module.add_src_file(
        [
            "festival/src/modules/Intonation/simple.cc",
            "festival/src/modules/Intonation/duffint.cc",
            "festival/src/modules/Intonation/int_aux.cc",
            "festival/src/modules/Intonation/gen_int.cc",
            "festival/src/modules/Intonation/int_tree.cc",
        ]
    )

    my_module.add_src_file(
        [
            "festival/src/modules/UniSyn_diphone/UniSyn_diphone.cc",
            "festival/src/modules/UniSyn_diphone/us_diphone_index.cc",
            "festival/src/modules/UniSyn_diphone/us_diphone_unit.cc",
        ]
    )
    """
	my_module.add_src_file([
		'festival/src/modules/UniSyn_phonology/UniSyn_phonology.cc',
		'festival/src/modules/UniSyn_phonology/unisyn_tilt.cc',
		'festival/src/modules/UniSyn_phonology/subword.cc',
		'festival/src/modules/UniSyn_phonology/us_duration.cc',
		'festival/src/modules/UniSyn_phonology/syllabify.cc',
		'festival/src/modules/UniSyn_phonology/mettree.cc',
		'festival/src/modules/UniSyn_phonology/us_aux.cc',
		'festival/src/modules/UniSyn_phonology/UniSyn_build.cc' # pb compiling ...
		])
	"""
    my_module.add_src_file(
        [
            "festival/src/modules/donovan/coeffs.c",
            "festival/src/modules/donovan/donovan.cc",
            "festival/src/modules/donovan/durations.c",
            "festival/src/modules/donovan/excitation.c",
            "festival/src/modules/donovan/load_diphs.c",
            "festival/src/modules/donovan/makewav.c",
            "festival/src/modules/donovan/pitch.c",
        ]
    )

    my_module.add_src_file(
        [
            "festival/src/modules/Text/text_modes.cc",
            "festival/src/modules/Text/tok_ext.cc",
            "festival/src/modules/Text/text.cc",
            "festival/src/modules/Text/token.cc",
            "festival/src/modules/Text/xxml.cc",
            "festival/src/modules/Text/token_pos.cc",
            "festival/src/modules/Text/text_aux.cc",
        ]
    )

    my_module.add_src_file(
        [
            "festival/src/modules/clustergen/HTS_vocoder_me.cc",  # request include : festival/src/modules/hts_engine
            "festival/src/modules/clustergen/mlsa_resynthesis.cc",
            "festival/src/modules/clustergen/simple_mlpg.cc",
            "festival/src/modules/clustergen/vc.cc",
            "festival/src/modules/clustergen/clustergen.cc",
        ]
    )
    my_module.add_export_path(os.path.join(tools.get_current_path(__file__), "festival/src/modules/hts_engine"))

    """
	my_module.add_src_file([
		'festival/src/modules/diphone/di_select.cc',
		'festival/src/modules/diphone/di_pitch.cc',
		'festival/src/modules/diphone/di_io.cc',
		'festival/src/modules/diphone/oc.cc',
		'festival/src/modules/diphone/di_psola.cc',
		'festival/src/modules/diphone/di_reslpc.cc',
		'festival/src/modules/diphone/diphone.cc'
		])
	"""

    my_module.add_src_file(
        [
            "festival/src/modules/Duration/duration.cc",
            "festival/src/modules/Duration/dur_aux.cc",
            "festival/src/modules/Duration/Klatt.cc",
        ]
    )

    my_module.add_src_file(
        [
            "festival/src/modules/hts_engine/fest2hts_engine.cc",
            "festival/src/modules/hts_engine/HTS_audio.c",
            "festival/src/modules/hts_engine/HTS_engine.c",
            "festival/src/modules/hts_engine/HTS_engine.c",
            "festival/src/modules/hts_engine/HTS_gstream.c",
            "festival/src/modules/hts_engine/HTS_label.c",
            "festival/src/modules/hts_engine/HTS_misc.c",
            "festival/src/modules/hts_engine/HTS_model.c",
            "festival/src/modules/hts_engine/HTS_pstream.c",
            "festival/src/modules/hts_engine/HTS_sstream.c",
            #'festival/src/modules/hts_engine/HTS_vocoder.c'
        ]
    )

    my_module.add_src_file(
        [
            "festival/src/modules/clunits/cldb.cc",
            "festival/src/modules/clunits/clunits.cc",
            "festival/src/modules/clunits/acost.cc",
            "festival/src/modules/clunits/cljoin.cc",  # request finclude estival/src/modules/UniSyn
        ]
    )
    my_module.add_export_path(os.path.join(tools.get_current_path(__file__), "festival/src/modules/UniSyn"))

    my_module.add_src_file(["festival/src/modules/rxp/ttsxml.cc"])  # request include : speech_tools/include/rxp
    my_module.add_export_path(os.path.join(tools.get_current_path(__file__), "speech_tools/include/rxp"))
    my_module.compile_flags("c++", "-DCHAR_SIZE=8")

    my_module.add_src_file(
        [
            "festival/src/modules/Lexicon/complex.cc",
            "festival/src/modules/Lexicon/lts.cc",
            "festival/src/modules/Lexicon/lexicon.cc",
            "festival/src/modules/Lexicon/lex_ff.cc",
            "festival/src/modules/Lexicon/lex_aux.cc",
            "festival/src/modules/Lexicon/lts_rules.cc",
        ]
    )

    my_module.add_src_file(["festival/src/modules/parser/pparser.cc"])

    my_module.add_src_file(
        [
            "festival/src/modules/MultiSyn/EST_JoinCost.cc",
            "festival/src/modules/MultiSyn/DiphoneUnitVoice.cc",
            "festival/src/modules/MultiSyn/inst_tmpl/list_itemp_t.cc",
            "festival/src/modules/MultiSyn/inst_tmpl/hash_itemp_tcdatap_t.cc",
            "festival/src/modules/MultiSyn/inst_tmpl/list_voicemodulep_t.cc",
            "festival/src/modules/MultiSyn/inst_tmpl/list_scorepair_t.cc",
            "festival/src/modules/MultiSyn/inst_tmpl/hash_s_itemlistp_t.cc",
            "festival/src/modules/MultiSyn/inst_tmpl/list_strlist_t.cc",
            "festival/src/modules/MultiSyn/inst_tmpl/list_uttp_t.cc",
            "festival/src/modules/MultiSyn/inst_tmpl/vector_jccp_t.cc",
            "festival/src/modules/MultiSyn/DiphoneBackoff.cc",
            "festival/src/modules/MultiSyn/EST_DiphoneCoverage.cc",
            "festival/src/modules/MultiSyn/EST_TargetCost.cc",
            "festival/src/modules/MultiSyn/EST_JoinCostCache.cc",
            "festival/src/modules/MultiSyn/DiphoneVoiceModule.cc",
            "festival/src/modules/MultiSyn/VoiceModuleBase.cc",
            "festival/src/modules/MultiSyn/VoiceBase.cc",
            "festival/src/modules/MultiSyn/UnitSelection.cc",
            "festival/src/modules/MultiSyn/EST_FlatTargetCost.cc",
            "festival/src/modules/MultiSyn/TargetCostRescoring.cc",
        ]
    )
    my_module.add_export_path(os.path.join(tools.get_current_path(__file__), "festival/src/modules/MultiSyn"))
    my_module.add_export_path(os.path.join(tools.get_current_path(__file__), "festival/src/modules/MultiSyn/inst_tmpl"))

    # load all modules
    my_module.add_src_file(["init_modules.cc"])
    my_module.add_export_path(os.path.join(tools.get_current_path(__file__), "festival/src/modules"))

    my_module.compile_flags("c++", "-fno-implicit-templates")
    my_module.compile_flags("c++", "-DINSTANTIATE_TEMPLATES")
    my_module.compile_flags("c++", "-DFTNAME='Festival Speech Synthesis System'")
    my_module.compile_flags("c++", "-DFTLIBDIRC='" + tools.get_current_path(__file__) + "/festival/lib '")
    my_module.compile_flags("c++", "-DFTVERSION='2.4'")
    my_module.compile_flags("c++", "-DFTSTATE='release'")
    my_module.compile_flags("c++", "-DFTDATE='December 2014'")
    my_module.compile_flags("c++", "-DFTSTATE='release'")
    my_module.compile_flags("c++", '-DFTOSTYPE=\\"unknown_DebianGNULinux\\"')
    my_module.compile_version_CC(1999)
    # TODO: copy in install folder ...
    my_module.add_export_path(os.path.join(tools.get_current_path(__file__), "festival/src/include"))
    my_module.add_export_path(os.path.join(tools.get_current_path(__file__), "speech_tools/include"))
    # my_module.add_export_path(tools.get_current_path(__file__) + "/festival/src/include")

    my_module.compile_version_XX(2003)
    my_module.add_export_flag("link", "-lncurses")
    my_module.add_export_flag("link", "-lasound")
    my_module.add_export_flag("link", "-ldl")
    my_module.add_export_flag("link", "-lm")
    my_module.add_export_flag("link", "-lstdc++")
    return my_module
コード例 #23
0
ファイル: lutin_edn.py プロジェクト: fossabot/edn
def create(target, module_name):
    my_module = module.Module(__file__, module_name, get_type())
    my_module.add_extra_compile_flags()
    my_module.add_src_file(['sources/appl/ctags/readtags.cpp'])
    my_module.add_src_file([
        'sources/appl/debug.cpp', 'sources/appl/global.cpp',
        'sources/appl/globalMsg.cpp', 'sources/appl/init.cpp'
    ])
    # Gui:
    my_module.add_src_file([
        'sources/appl/Gui/BufferView.cpp', 'sources/appl/Gui/TextViewer.cpp',
        'sources/appl/Gui/ViewerManager.cpp',
        'sources/appl/Gui/MainWindows.cpp', 'sources/appl/Gui/Search.cpp',
        'sources/appl/Gui/TagFileSelection.cpp',
        'sources/appl/Gui/TagFileList.cpp',
        'sources/appl/Gui/WorkerSaveFile.cpp',
        'sources/appl/Gui/WorkerSaveAllFile.cpp',
        'sources/appl/Gui/WorkerCloseFile.cpp',
        'sources/appl/Gui/WorkerCloseAllFile.cpp'
    ])
    # All needed for the buffer management :
    my_module.add_src_file([
        'sources/appl/Buffer.cpp', 'sources/appl/BufferManager.cpp',
        'sources/appl/TextPlugin.cpp', 'sources/appl/TextPluginCopy.cpp',
        'sources/appl/TextPluginMultiLineTab.cpp',
        'sources/appl/TextPluginAutoIndent.cpp',
        'sources/appl/TextPluginHistory.cpp',
        'sources/appl/TextPluginRmLine.cpp',
        'sources/appl/TextPluginSelectAll.cpp',
        'sources/appl/TextPluginCtags.cpp',
        'sources/appl/TextPluginManager.cpp'
    ])
    # Generic color management for the text editor :
    my_module.add_src_file(
        ['sources/appl/GlyphDecoration.cpp', 'sources/appl/GlyphPainting.cpp'])
    # syntax coloration for the text editor
    my_module.add_src_file([
        'sources/appl/HighlightPattern.cpp', 'sources/appl/Highlight.cpp',
        'sources/appl/HighlightManager.cpp'
    ])
    my_module.add_module_depend(['ewol'])
    my_module.copy_path('data/icon.*', '')
    my_module.copy_path('data/languages/gcov/*.xml', 'languages/gcov/')
    my_module.copy_path('data/languages/asm/*.xml', 'languages/asm/')
    my_module.copy_path('data/languages/bash/*.xml', 'languages/bash/')
    my_module.copy_path('data/languages/boo/*.xml', 'languages/boo/')
    my_module.copy_path('data/languages/cpp/*.xml', 'languages/cpp/')
    my_module.copy_path('data/languages/c/*.xml', 'languages/c/')
    my_module.copy_path('data/languages/cmake/*.xml', 'languages/cmake/')
    my_module.copy_path('data/languages/glsl/*.xml', 'languages/glsl/')
    my_module.copy_path('data/languages/in/*.xml', 'languages/in/')
    my_module.copy_path('data/languages/java/*.xml', 'languages/java/')
    my_module.copy_path('data/languages/json/*.xml', 'languages/json/')
    my_module.copy_path('data/languages/lua/*.xml', 'languages/lua/')
    my_module.copy_path('data/languages/makefile/*.xml', 'languages/makefile/')
    my_module.copy_path('data/languages/matlab/*.xml', 'languages/matlab/')
    my_module.copy_path('data/languages/php/*.xml', 'languages/php/')
    my_module.copy_path('data/languages/xml/*.xml', 'languages/xml/')
    my_module.copy_path('data/languages/python/*.xml', 'languages/python/')
    my_module.copy_path('data/theme/default/*.svg', 'theme/shape/square/')
    my_module.copy_path('data/theme/default/*.edf', 'theme/shape/square/')
    my_module.copy_path('data/theme/colorWhite/*.json', 'theme/color/white/')
    my_module.copy_path('data/theme/colorBlack/*.json', 'theme/color/black/')
    my_module.copy_path('data/GUI-Search.xml', '')

    my_module.add_path(
        os.path.join(tools.get_current_path(__file__), "sources"))

    my_module.copy_file("data/Font/freefont/FreeSerif.ttf",
                        "fonts/FreeSerif.ttf")
    my_module.copy_path("data/Font/freefont/FreeMon*.ttf", "fonts/")

    my_module.compile_flags('c', [
        "-DPROJECT_NAME=\"\\\"" + my_module.name + "\\\"\"",
        "-DAPPL_VERSION=\"\\\"" + tools.version_to_string(get_version()) +
        "\\\"\""
    ])
    versionIDCode = str(get_version_id())

    # set the package properties:
    my_module.pkg_set("VERSION_CODE", versionIDCode)
    if target.name == "MacOs":
        my_module.pkg_set(
            "ICON",
            os.path.join(tools.get_current_path(__file__), "data/icon.icns"))
    else:
        my_module.pkg_set(
            "ICON",
            os.path.join(tools.get_current_path(__file__), "data/icon.png"))

    my_module.pkg_set("SECTION", ["Development", "Editors"])
    my_module.pkg_set("PRIORITY", "optional")
    my_module.pkg_add("RIGHT", "WRITE_EXTERNAL_STORAGE")
    my_module.pkg_add("RIGHT", "SET_ORIENTATION")

    return my_module
コード例 #24
0
ファイル: lutin_agg.py プロジェクト: atria-soft/libagg
def create(target, module_name):
	my_module = module.Module(__file__, module_name, get_type())
	my_module.add_module_depend(['etk', 'freetype'])
	my_module.add_path(os.path.join(tools.get_current_path(__file__), "agg"))
	my_module.add_path(os.path.join(tools.get_current_path(__file__), "agg/util"))
	my_module.add_path(tools.get_current_path(__file__))
	my_module.add_src_file([
		'agg/agg_arc.cpp',
		'agg/agg_arrowhead.cpp',
		'agg/agg_bezier_arc.cpp',
		'agg/agg_bspline.cpp',
		'agg/agg_curves.cpp',
		'agg/agg_embedded_raster_fonts.cpp',
		'agg/agg_font_freetype.cpp',
		'agg/agg_gsv_text.cpp',
		'agg/agg_image_filters.cpp',
		'agg/agg_line_aa_basics.cpp',
		'agg/agg_line_profile_aa.cpp',
		'agg/agg_rounded_rect.cpp',
		'agg/agg_sqrt_tables.cpp',
		'agg/agg_trans_affine.cpp',
		'agg/agg_trans_double_path.cpp',
		'agg/agg_trans_single_path.cpp',
		'agg/agg_trans_warp_magnifier.cpp',
		'agg/agg_vcgen_bspline.cpp',
		'agg/agg_vcgen_contour.cpp',
		'agg/agg_vcgen_dash.cpp',
		'agg/agg_vcgen_markers_term.cpp',
		'agg/agg_vcgen_smooth_poly1.cpp',
		'agg/agg_vcgen_stroke.cpp',
		'agg/agg_vpgen_clip_polygon.cpp',
		'agg/agg_vpgen_clip_polyline.cpp',
		'agg/agg_vpgen_segmentator.cpp'
		])
	my_module.add_header_file([
		'agg/agg_color_rgba.h',
		'agg/agg_rasterizer_outline.h',
		'agg/agg_trans_single_path.h',
		'agg/agg_clip_liang_barsky.h',
		'agg/agg_span_gouraud_rgba.h',
		'agg/agg_renderer_base.h',
		'agg/agg_rendering_buffer_dynarow.h',
		'agg/agg_embedded_raster_fonts.h',
		'agg/agg_alpha_mask_u8.h',
		'agg/agg_scanline_boolean_algebra.h',
		'agg/agg_conv_transform.h',
		'agg/agg_span_gradient_alpha.h',
		'agg/agg_conv_marker_adaptor.h',
		'agg/agg_trans_warp_magnifier.h',
		'agg/agg_conv_gpc.h',
		'agg/agg_trans_affine.h',
		'agg/agg_conv_close_polygon.h',
		'agg/agg_pattern_filters_rgba.h',
		'agg/agg_conv_adaptor_vpgen.h',
		'agg/agg_span_image_filter_rgba.h',
		'agg/agg_font_cache_manager.h',
		'agg/agg_conv_dash.h',
		'agg/agg_path_storage.h',
		'agg/agg_scanline_u.h',
		'agg/agg_vpgen_segmentator.h',
		'agg/agg_vcgen_stroke.h',
		'agg/agg_bspline.h',
		'agg/agg_span_subdiv_adaptor.h',
		'agg/agg_rasterizer_outline_aa.h',
		'agg/agg_span_pattern_rgba.h',
		'agg/agg_conv_bspline.h',
		'agg/agg_bitset_iterator.h',
		'agg/agg_span_allocator.h',
		'agg/agg_span_interpolator_linear.h',
		'agg/agg_pixfmt_rgb.h',
		'agg/agg_renderer_primitives.h',
		'agg/agg_trans_perspective.h',
		'agg/agg_gradient_lut.h',
		'agg/agg_conv_unclose_polygon.h',
		'agg/agg_basics.h',
		'agg/agg_rasterizer_sl_clip.h',
		'agg/agg_conv_segmentator.h',
		'agg/agg_span_interpolator_persp.h',
		'agg/util/agg_color_conv_rgb8.h',
		'agg/util/agg_color_conv_rgb16.h',
		'agg/util/agg_color_conv.h',
		'agg/agg_image_accessors.h',
		'agg/agg_conv_adaptor_vcgen.h',
		'agg/agg_config.h',
		'agg/agg_scanline_p.h',
		'agg/agg_bezier_arc.h',
		'agg/agg_span_gradient.h',
		'agg/agg_renderer_outline_aa.h',
		'agg/agg_vcgen_bspline.h',
		'agg/agg_vpgen_clip_polyline.h',
		'agg/agg_conv_smooth_poly1.h',
		'agg/agg_rounded_rect.h',
		'agg/agg_arrowhead.h',
		'agg/agg_rendering_buffer.h',
		'agg/agg_rasterizer_compound_aa.h',
		'agg/agg_scanline_bin.h',
		'agg/agg_span_gouraud.h',
		'agg/agg_trans_viewport.h',
		'agg/agg_image_filters.h',
		'agg/agg_conv_clip_polygon.h',
		'agg/agg_conv_shorten_path.h',
		'agg/agg_path_length.h',
		'agg/agg_conv_concat.h',
		'agg/agg_bounding_rect.h',
		'agg/agg_conv_stroke.h',
		'agg/agg_span_image_filter_gray.h',
		'agg/agg_shorten_path.h',
		'agg/agg_path_storage_integer.h',
		'agg/agg_color_gray.h',
		'agg/agg_rasterizer_scanline_aa.h',
		'agg/agg_span_pattern_rgb.h',
		'agg/agg_conv_marker.h',
		'agg/agg_span_image_filter.h',
		'agg/agg_pixfmt_transposer.h',
		'agg/agg_array.h',
		'agg/agg_rasterizer_cells_aa.h',
		'agg/agg_span_pattern_gray.h',
		'agg/agg_span_image_filter_rgb.h',
		'agg/agg_renderer_raster_text.h',
		'agg/agg_renderer_outline_image.h',
		'agg/agg_conv_contour.h',
		'agg/agg_gamma_functions.h',
		'agg/agg_font_freetype.h',
		'agg/agg_math_stroke.h',
		'agg/agg_vpgen_clip_polygon.h',
		'agg/agg_vcgen_dash.h',
		'agg/agg_renderer_mclip.h',
		'agg/agg_vcgen_vertex_sequence.h',
		'agg/agg_pixfmt_rgb_packed.h',
		'agg/agg_line_aa_basics.h',
		'agg/agg_arc.h',
		'agg/agg_trans_bilinear.h',
		'agg/agg_vcgen_markers_term.h',
		'agg/agg_blur.h',
		'agg/agg_conv_clip_polyline.h',
		'agg/agg_ellipse_bresenham.h',
		'agg/agg_glyph_raster_bin.h',
		'agg/agg_pixfmt_gray.h',
		'agg/agg_span_interpolator_trans.h',
		'agg/agg_renderer_scanline.h',
		'agg/agg_gamma_lut.h',
		'agg/agg_scanline_storage_bin.h',
		'agg/agg_gsv_text.h',
		'agg/agg_span_converter.h',
		'agg/agg_simul_eq.h',
		'agg/agg_vertex_sequence.h',
		'agg/agg_conv_curve.h',
		'agg/agg_trans_double_path.h',
		'agg/agg_pixfmt_amask_adaptor.h',
		'agg/agg_curves.h',
		'agg/agg_span_solid.h',
		'agg/agg_ellipse.h',
		'agg/agg_span_interpolator_adaptor.h',
		'agg/agg_span_gouraud_gray.h',
		'agg/agg_pixfmt_rgba.h',
		'agg/agg_vcgen_smooth_poly1.h',
		'agg/agg_math.h',
		'agg/agg_scanline_storage_aa.h',
		'agg/agg_dda_line.h',
		'agg/agg_renderer_markers.h',
		'agg/agg_vcgen_contour.h'
		])
	#ewol abstraction of the graphic librairies :
	# TODO : Maybe deprecated ...
	my_module.add_src_file([
		'draw/debug.cpp',
		'draw/Color.cpp',
		'draw/Image.cpp'
		])
	my_module.add_header_file([
		'draw/Color.h',
		'draw/Image.h'
		])
	return my_module
コード例 #25
0
def create(target, module_name):
	my_module = module.Module(__file__, module_name, get_type())
	
	my_module.add_src_file([
		'portaudio/src/common/pa_allocation.c',
		'portaudio/src/common/pa_converters.c',
		'portaudio/src/common/pa_cpuload.c',
		'portaudio/src/common/pa_dither.c',
		'portaudio/src/common/pa_debugprint.c',
		'portaudio/src/common/pa_front.c',
		'portaudio/src/common/pa_process.c',
		'portaudio/src/common/pa_stream.c',
		'portaudio/src/common/pa_trace.c',
		'portaudio/src/hostapi/skeleton/pa_hostapi_skeleton.c',
		'portaudio/src/common/pa_ringbuffer.c'
		])
	
	my_module.compile_flags('c', [
		'-DPA_LITTLE_ENDIAN',
		'-DPACKAGE_NAME=\"\"',
		'-DPACKAGE_TARNAME=\"\"',
		'-DPACKAGE_VERSION=\"\"',
		'-DPACKAGE_STRING=\"\"',
		'-DPACKAGE_BUGREPORT=\"\"',
		'-DPACKAGE_URL=\"\"',
		'-DSTDC_HEADERS=1',
		'-DHAVE_SYS_TYPES_H=1',
		'-DHAVE_SYS_STAT_H=1',
		'-DHAVE_STDLIB_H=1',
		'-DHAVE_STRING_H=1',
		'-DHAVE_MEMORY_H=1',
		'-DHAVE_STRINGS_H=1',
		'-DHAVE_INTTYPES_H=1',
		'-DHAVE_STDINT_H=1',
		'-DHAVE_UNISTD_H=1',
		'-DHAVE_DLFCN_H=1',
		'-DLT_OBJDIR=\".libs/\"',
		'-DHAVE_SYS_SOUNDCARD_H=1',
		'-DHAVE_LINUX_SOUNDCARD_H=1',
		'-DSIZEOF_SHORT=2',
		'-DSIZEOF_INT=4',
		'-DSIZEOF_LONG=8',
		'-DHAVE_CLOCK_GETTIME=1',
		'-DHAVE_NANOSLEEP=1'
		])
	
	my_module.compile_version("c", 1999, gnu=True)
	
	my_module.add_path(os.path.join(tools.get_current_path(__file__), 'portaudio/include'))
	my_module.add_path(os.path.join(tools.get_current_path(__file__), "portaudio/src/common"))
	my_module.add_header_file([
		'portaudio/include/portaudio.h'
		],
		destination_path="portaudio")
	if target.name=="Windows":
		my_module.add_src_file([
			'portaudio/src/os/win/pa_win_coinitialize.c',
			'portaudio/src/os/win/pa_win_hostapis.c',
			'portaudio/src/os/win/pa_win_waveformat.c',
			'portaudio/src/os/win/pa_win_util.c',
			'portaudio/src/os/win/pa_win_wdmks_utils.c',
			'portaudio/src/os/win/pa_x86_plain_converters.c'
			])
		my_module.add_header_file([
			'portaudio/include/pa_win_waveformat.h',
			'portaudio/include/pa_win_wasapi.h',
			'portaudio/include/pa_win_wdmks.h',
			'portaudio/include/pa_win_wmme.h'
			],
			destination_path="portaudio")
	elif target.name=="Linux":
		my_module.add_optionnal_module_depend('alsa', ["c", "-DPA_USE_ALSA=1"])
		my_module.add_optionnal_module_depend('jack', ["c", "-DPA_USE_JACK=1"])
		my_module.add_optionnal_module_depend('oss', ["c", "-DPA_USE_OSS=1"])
		my_module.add_path(os.path.join(tools.get_current_path(__file__), "portaudio/src/os/unix"))
		my_module.add_src_file([
			'portaudio/src/hostapi/alsa/pa_linux_alsa.c',
			'portaudio/src/hostapi/jack/pa_jack.c',
			'portaudio/src/hostapi/oss/pa_unix_oss.c',
			'portaudio/src/os/unix/pa_unix_hostapis.c',
			'portaudio/src/os/unix/pa_unix_util.c'
			])
		my_module.add_header_file([
			'portaudio/include/pa_jack.h',
			'portaudio/include/pa_linux_alsa.h',
			'portaudio/include/pa_asio.h',
			'portaudio/include/pa_win_ds.h',
			],
			destination_path="portaudio")
	elif target.name=="MacOs":
		my_module.add_path(os.path.join(tools.get_current_path(__file__), "portaudio/src/os/unix"))
		my_module.add_optionnal_module_depend('oss', ["c", "-DPA_USE_COREAUDIO=1"])
		my_module.add_src_file([
			'portaudio/src/hostapi/coreaudio/pa_mac_core.c',
			'portaudio/src/hostapi/coreaudio/pa_mac_core_blocking.c',
			'portaudio/src/hostapi/coreaudio/pa_mac_core_utilities.c',
			'portaudio/src/os/unix/pa_unix_hostapis.c',
			'portaudio/src/os/unix/pa_unix_util.c'
			])
		my_module.add_header_file([
			'portaudio/include/pa_mac_core.h'
			],
			destination_path="portaudio")
	elif target.name=="IOs":
		debug.warning("target for portaudio: " + target.name + " can not be created ... (not supported)");
		return None
	elif target.name=="Android":
		debug.warning("target for portaudio: " + target.name + " can not be created ... (not supported)");
		return None
	else:
		debug.warning("unknow target for portaudio: " + target.name);
	return my_module
コード例 #26
0
ファイル: lutinTarget_Android.py プロジェクト: HeeroYui/lutin
	def make_package_binary(self, pkg_name, pkg_properties, base_pkg_path, heritage_list, static):
		debug.debug("------------------------------------------------------------------------")
		debug.info("Generate package '" + pkg_name + "' v" + tools.version_to_string(pkg_properties["VERSION"]))
		debug.debug("------------------------------------------------------------------------")
		#output path
		target_outpath = self.get_staging_path(pkg_name)
		tools.create_directory_of_file(target_outpath)
		
		## Create share datas:
		self.make_package_binary_data(target_outpath, pkg_name, base_pkg_path, heritage_list, static)
		
		## copy binary files
		# in Android Package we have no binary element, only shared object ... (and java start file)
		
		## Create libraries (special case of Android...)
		copy_list={}
		target_outpath_lib = os.path.join(target_outpath, self.pkg_path_lib)
		tools.create_directory_of_file(target_outpath_lib)
		# copy application lib: (needed to lunch ...)
		file_src = self.get_build_file_dynamic(pkg_name)
		if os.path.isfile(file_src):
			debug.debug("      need copy: " + file_src + " to " + target_outpath_lib)
			tools.copy_file(file_src,
			                os.path.join(target_outpath_lib, os.path.basename(file_src)),
			                in_list=copy_list)
		# copy other if needed:
		if static == False:
			#copy all shared libsh...
			debug.verbose("libs for " + str(pkg_name) + ":")
			for heritage in heritage_list.list_heritage:
				debug.debug("sub elements: " + str(heritage.name))
				file_src = self.get_build_file_dynamic(heritage.name)
				debug.verbose("      has directory: " + file_src)
				if os.path.isfile(file_src):
					debug.debug("      need copy: " + file_src + " to " + target_outpath_lib)
					#copy all data:
					# TODO : We can have a problem when writing over library files ...
					tools.copy_file(file_src,
					                os.path.join(target_outpath_lib, os.path.basename(file_src)),
					                in_list=copy_list)
		#real copy files
		tools.copy_list(copy_list)
		if self.pkg_path_lib != "":
			# remove unneded files (NOT folder ...)
			tools.clean_directory(target_outpath_lib, copy_list)
		
		## Create generic files:
		self.make_package_generic_files(target_outpath, pkg_properties, pkg_name, base_pkg_path, heritage_list, static)
		
		## create specific android project (local)
		pkg_name_application_name = pkg_name
		if self.config["mode"] == "debug":
			pkg_name_application_name += "debug"
		#debug.info("ploppppp: " + str(pkg_properties))
		# FINAL_path_JAVA_PROJECT
		self.path_java_project = os.path.join(target_outpath,
		                                      "src")
		if pkg_properties["COMPAGNY_TYPE"] != "":
			self.path_java_project = os.path.join(self.path_java_project,
			                                      pkg_properties["COMPAGNY_TYPE"])
		if pkg_properties["COMPAGNY_NAME2"] != "":
			self.path_java_project = os.path.join(self.path_java_project,
			                                      pkg_properties["COMPAGNY_NAME2"])
		self.path_java_project = os.path.join(self.path_java_project,
		                                      pkg_name_application_name)
		#FINAL_FILE_ABSTRACTION
		self.file_final_abstraction = os.path.join(self.path_java_project, pkg_name_application_name + ".java")
		
		compleatePackageName = ""
		if pkg_properties["COMPAGNY_TYPE"] != "":
			compleatePackageName += pkg_properties["COMPAGNY_TYPE"] + "."
		if pkg_properties["COMPAGNY_NAME2"] != "":
			compleatePackageName += pkg_properties["COMPAGNY_NAME2"] + "."
		compleatePackageName += pkg_name_application_name
		
		if "ADMOD_ID" in pkg_properties:
			pkg_properties["RIGHT"].append("INTERNET")
			pkg_properties["RIGHT"].append("ACCESS_NETWORK_STATE")
		
		
		debug.print_element("pkg", "absractionFile", "<==", "dynamic file")
		# Create path :
		tools.create_directory_of_file(self.file_final_abstraction)
		# Create file :
		# java ==> done by ewol wrapper ... (and compiled in the normal compilation system ==> must be find in the dependency list of jar ...
		
		tools.create_directory_of_file(target_outpath + "/res/drawable/icon.png");
		if     "ICON" in pkg_properties.keys() \
		   and pkg_properties["ICON"] != "":
			image.resize(pkg_properties["ICON"], target_outpath + "/res/drawable/icon.png", 256, 256)
		else:
			# to be sure that we have all time a resource ...
			tmpFile = open(target_outpath + "/res/drawable/plop.txt", 'w')
			tmpFile.write('plop\n')
			tmpFile.flush()
			tmpFile.close()
		
		if pkg_properties["ANDROID_MANIFEST"]!="":
			debug.print_element("pkg", "AndroidManifest.xml", "<==", pkg_properties["ANDROID_MANIFEST"])
			tools.copy_file(pkg_properties["ANDROID_MANIFEST"], target_outpath + "/AndroidManifest.xml", force=True)
		else:
			debug.error("missing parameter 'ANDROID_MANIFEST' in the properties ... ")
		
		#add properties on wallpaper :
		# myModule.add_pkg("ANDROID_WALLPAPER_PROPERTIES", ["list", key, title, summary, [["key","value display"],["key2","value display 2"]])
		# myModule.add_pkg("ANDROID_WALLPAPER_PROPERTIES", ["list", "testpattern", "Select test pattern", "Choose which test pattern to display", [["key","value display"],["key2","value display 2"]]])
		# myModule.add_pkg("ANDROID_WALLPAPER_PROPERTIES", ["bool", key, title, summary, ["enable string", "disable String"])
		# myModule.add_pkg("ANDROID_WALLPAPER_PROPERTIES", ["bool", "movement", "Motion", "Apply movement to test pattern", ["Moving test pattern", "Still test pattern"]
		#copy needed resources :
		for res_source, res_dest in pkg_properties["ANDROID_RESOURCES"]:
			if res_source == "":
				continue
			tools.copy_file(res_source , target_outpath + "/res/" + res_dest + "/" + os.path.basename(res_source), force=True)
		
		
		# Doc :
		# http://asantoso.wordpress.com/2009/09/15/how-to-build-android-application-package-apk-from-the-command-line-using-the-sdk-tools-continuously-integrated-using-cruisecontrol/
		debug.print_element("pkg", "R.java", "<==", "Resources files")
		tools.create_directory_of_file(target_outpath + "/src/noFile")
		android_tool_path = self.path_sdk + "/build-tools/"
		# find android tool version
		dirnames = tools.get_list_sub_path(android_tool_path)
		if len(dirnames) == 0:
			debug.warning("This does not comport directory: '" + android_tool_path + "'")
			debug.error("An error occured when getting the tools for android")
		elif len(dirnames) > 1:
			dirnames = sorted(dirnames, reverse=True)
			debug.debug("sort tools directory: '" + str(dirnames) + "' ==> select : " + str(dirnames[0]))
		android_tool_path += dirnames[0] + "/"
		
		# this is to create resource file for android ... (we did not use aset in jar with ewol ...
		adModResoucepath = ""
		if "ADMOD_ID" in pkg_properties:
			adModResoucepath = " -S " + self.path_sdk + "/extras/google/google_play_services/libproject/google-play-services_lib/res/ "
		cmdLine = android_tool_path + "aapt p -f " \
		          + "-M " + target_outpath + "/AndroidManifest.xml " \
		          + "-F " + target_outpath + "/resources.res " \
		          + "-I " + self.path_sdk + "/platforms/android-" + str(self.board_id) + "/android.jar "\
		          + "-S " + target_outpath + "/res/ " \
		          + adModResoucepath \
		          + "-J " + target_outpath + "/src/ "
		multiprocess.run_command(cmdLine)
		
		tools.create_directory_of_file(target_outpath + "/build/classes/noFile")
		debug.print_element("pkg", "*.class", "<==", "*.java")
		#generate android java files:
		filesString=""
		
		"""
		old : 
		if "ADMOD_ID" in pkg_properties:
			# TODO : check this I do not think it is really usefull ... ==> write for IDE only ...
			filesString += self.path_sdk + "/extras/google/google_play_services/libproject/google-play-services_lib/src/android/UnusedStub.java "
		if len(pkg_properties["ANDROID_WALLPAPER_PROPERTIES"])!=0:
			filesString += self.path_java_project + pkg_name_application_name + "Settings.java "
		
		adModJarFile = ""
		if "ADMOD_ID" in pkg_properties:
			adModJarFile = ":" + self.path_sdk + "/extras/google/google_play_services/libproject/google-play-services_lib/libs/google-play-services.jar"
		
		cmdLine = "javac " \
		          + "-d " + self.get_staging_path(pkg_name) + "/build/classes " \
		          + "-classpath " + self.path_sdk + "/platforms/android-" + str(self.board_id) + "/android.jar" \
		          + adModJarFile + " " \
		          + filesString \
		          + self.file_final_abstraction + " "  \
		          + self.get_staging_path(pkg_name) + "/src/R.java "
		multiprocess.run_command(cmdLine)
		"""
		debug.verbose("heritage .so=" + str(tools.filter_extention(heritage_list.src['dynamic'], ["so"])))
		debug.verbose("heritage .jar=" + str(tools.filter_extention(heritage_list.src['src'], ["jar"])))
		
		class_extern = ""
		upper_jar = tools.filter_extention(heritage_list.src['src'], ["jar"])
		#debug.warning("ploppppp = " + str(upper_jar))
		for elem in upper_jar:
			if len(class_extern) > 0:
				class_extern += ":"
			class_extern += elem
		# create enpoint element :
		cmdLine = "javac " \
		          + "-d " + target_outpath + "/build/classes " \
		          + "-classpath " + class_extern + " " \
		          + target_outpath + "/src/R.java "
		multiprocess.run_command(cmdLine)
		
		debug.print_element("pkg", ".dex", "<==", "*.class")
		cmdLine = android_tool_path + "dx " \
		          + "--dex --no-strict " \
		          + "--output=" + target_outpath + "/build/" + pkg_name_application_name + ".dex " \
		          + target_outpath + "/build/classes/ "
		
		if "ADMOD_ID" in pkg_properties:
			cmdLine += self.path_sdk + "/extras/google/google_play_services/libproject/google-play-services_lib/libs/google-play-services.jar "
		# add element to dexification:
		for elem in upper_jar:
			# remove android sdk:
			if elem[-len("android.jar"):] != "android.jar":
				cmdLine += elem + " "
		
		multiprocess.run_command(cmdLine)
		
		debug.print_element("pkg", ".apk", "<==", ".dex, assets, .so, res")
		#builderDebug="-agentlib:jdwp=transport=dt_socket,server=y,address=8050,suspend=y "
		builderDebug=""
		# note : set -u not signed application...
		#+ ":" + self.path_sdk + "/extras/google/google_play_services/libproject/google-play-services_lib/libs/google-play-services.jar "
		cmdLine =   "java -Xmx128M " \
		          + " -classpath " + self.path_sdk + "/tools/lib/sdklib.jar " \
		          + builderDebug \
		          + " com.android.sdklib.build.ApkBuilderMain " \
		          + target_outpath + "/build/" + pkg_name_application_name + "-unalligned.apk " \
		          + " -u " \
		          + " -z " + target_outpath + "/resources.res " \
		          + " -f " + target_outpath + "/build/" + pkg_name_application_name + ".dex " \
		          + " -rf " + target_outpath + "/data "
		multiprocess.run_command(cmdLine)
		
		# doc :
		# http://developer.android.com/tools/publishing/app-signing.html
		# Create a key for signing your application:
		# keytool -genkeypair -v -keystore AndroidKey.jks -storepass Pass__AndroidDebugKey -alias alias__AndroidDebugKey -keypass PassKey__AndroidDebugKey -keyalg RSA -validity 36500
		if self.config["mode"] == "debug":
			debug.print_element("pkg", ".apk(signed debug)", "<==", ".apk (not signed)")
			# verbose mode : 
			#debugOption = "-verbose -certs "
			debugOption = ""
			cmdLine = "jarsigner " \
			    + debugOption \
			    + "-keystore " + tools.get_current_path(__file__) + "/AndroidDebugKey.jks " \
			    + " -sigalg SHA1withRSA -digestalg SHA1 " \
			    + " -storepass Pass__AndroidDebugKey " \
			    + " -keypass PassKey__AndroidDebugKey " \
			    + target_outpath + "/build/" + pkg_name_application_name + "-unalligned.apk " \
			    + " alias__AndroidDebugKey"
			multiprocess.run_command(cmdLine)
			tmpFile = open("tmpPass.boo", 'w')
			tmpFile.write("\n")
			tmpFile.flush()
			tmpFile.close()
		else:
			print("On release mode we need the file :  and key an pasword to sign the application ...")
			debug.print_element("pkg", ".apk(signed debug)", "<==", ".apk (not signed)")
			cmdLine = "jarsigner " \
			    + " -keystore " + pkg_properties["ANDROID_SIGN"] + " " \
			    + " -sigalg SHA1withRSA -digestalg SHA1 " \
			    + target_outpath + "/build/" + pkg_name_application_name + "-unalligned.apk " \
			    + " " + pkg_name_application_name
			multiprocess.run_command(cmdLine)
			cmdLine = "jarsigner " \
			    + " -verify -verbose -certs " \
			    + " -sigalg SHA1withRSA -digestalg SHA1 " \
			    + target_outpath + "/build/" + pkg_name_application_name + "-unalligned.apk "
			multiprocess.run_command(cmdLine)
		
		debug.print_element("pkg", ".apk(aligned)", "<==", ".apk (not aligned)")
		tools.remove_file(target_outpath + "/" + pkg_name_application_name + ".apk")
		# verbose mode : -v
		cmdLine = android_tool_path + "zipalign 4 " \
		          + target_outpath + "/build/" + pkg_name_application_name + "-unalligned.apk " \
		          + target_outpath + "/" + pkg_name_application_name + ".apk "
		multiprocess.run_command(cmdLine)
		
		# copy file in the final stage :
		tools.copy_file(target_outpath + "/" + pkg_name_application_name + ".apk",
		                self.get_final_path() + "/" + pkg_name_application_name + ".apk",
		                force=True)
コード例 #27
0
ファイル: lutin_edn.py プロジェクト: HeeroYui/edn
def create(target, module_name):
	my_module = module.Module(__file__, module_name, get_type())
	my_module.add_extra_compile_flags()
	my_module.add_src_file([
		'sources/appl/ctags/readtags.cpp'
		])
	my_module.add_src_file([
		'sources/appl/debug.cpp',
		'sources/appl/global.cpp',
		'sources/appl/globalMsg.cpp',
		'sources/appl/init.cpp'
		])
	# Gui:
	my_module.add_src_file([
		'sources/appl/Gui/BufferView.cpp',
		'sources/appl/Gui/TextViewer.cpp',
		'sources/appl/Gui/ViewerManager.cpp',
		'sources/appl/Gui/MainWindows.cpp',
		'sources/appl/Gui/Search.cpp',
		'sources/appl/Gui/TagFileSelection.cpp',
		'sources/appl/Gui/TagFileList.cpp',
		'sources/appl/Gui/WorkerSaveFile.cpp',
		'sources/appl/Gui/WorkerSaveAllFile.cpp',
		'sources/appl/Gui/WorkerCloseFile.cpp',
		'sources/appl/Gui/WorkerCloseAllFile.cpp'
		])
	# All needed for the buffer management :
	my_module.add_src_file([
		'sources/appl/Buffer.cpp',
		'sources/appl/BufferManager.cpp',
		'sources/appl/TextPlugin.cpp',
		'sources/appl/TextPluginCopy.cpp',
		'sources/appl/TextPluginMultiLineTab.cpp',
		'sources/appl/TextPluginAutoIndent.cpp',
		'sources/appl/TextPluginHistory.cpp',
		'sources/appl/TextPluginRmLine.cpp',
		'sources/appl/TextPluginSelectAll.cpp',
		'sources/appl/TextPluginCtags.cpp',
		'sources/appl/TextPluginManager.cpp'
		])
	# Generic color management for the text editor : 
	my_module.add_src_file([
		'sources/appl/GlyphDecoration.cpp',
		'sources/appl/GlyphPainting.cpp'
		])
	# syntax coloration for the text editor
	my_module.add_src_file([
		'sources/appl/HighlightPattern.cpp',
		'sources/appl/Highlight.cpp',
		'sources/appl/HighlightManager.cpp'
		])
	my_module.add_module_depend(['ewol'])
	my_module.copy_path('data/icon.*','')
	my_module.copy_path('data/languages/gcov/*.xml','languages/gcov/')
	my_module.copy_path('data/languages/asm/*.xml','languages/asm/')
	my_module.copy_path('data/languages/bash/*.xml','languages/bash/')
	my_module.copy_path('data/languages/boo/*.xml','languages/boo/')
	my_module.copy_path('data/languages/cpp/*.xml','languages/cpp/')
	my_module.copy_path('data/languages/c/*.xml','languages/c/')
	my_module.copy_path('data/languages/cmake/*.xml','languages/cmake/')
	my_module.copy_path('data/languages/glsl/*.xml','languages/glsl/')
	my_module.copy_path('data/languages/in/*.xml','languages/in/')
	my_module.copy_path('data/languages/java/*.xml','languages/java/')
	my_module.copy_path('data/languages/json/*.xml','languages/json/')
	my_module.copy_path('data/languages/lua/*.xml','languages/lua/')
	my_module.copy_path('data/languages/makefile/*.xml','languages/makefile/')
	my_module.copy_path('data/languages/matlab/*.xml','languages/matlab/')
	my_module.copy_path('data/languages/php/*.xml','languages/php/')
	my_module.copy_path('data/languages/xml/*.xml','languages/xml/')
	my_module.copy_path('data/languages/python/*.xml','languages/python/')
	my_module.copy_path('data/theme/default/*.svg','theme/shape/square/')
	my_module.copy_path('data/theme/default/*.edf','theme/shape/square/')
	my_module.copy_path('data/theme/colorWhite/*.json','theme/color/white/')
	my_module.copy_path('data/theme/colorBlack/*.json','theme/color/black/')
	my_module.copy_path('data/GUI-Search.xml','')
	
	my_module.add_path(os.path.join(tools.get_current_path(__file__), "sources"))
	
	my_module.copy_file("data/Font/freefont/FreeSerif.ttf","fonts/FreeSerif.ttf")
	my_module.copy_path("data/Font/freefont/FreeMon*.ttf","fonts/")
	
	my_module.compile_flags('c', [
		"-DPROJECT_NAME=\"\\\""+my_module.name+"\\\"\"",
		"-DAPPL_VERSION=\"\\\"" + tools.version_to_string(get_version()) + "\\\"\""
		])
	versionIDCode = str(get_version_id())
	
	# set the package properties:
	my_module.pkg_set("VERSION_CODE", versionIDCode)
	if target.name=="MacOs":
		my_module.pkg_set("ICON", os.path.join(tools.get_current_path(__file__), "data/icon.icns"))
	else:
		my_module.pkg_set("ICON", os.path.join(tools.get_current_path(__file__), "data/icon.png"))
	
	my_module.pkg_set("SECTION", ["Development", "Editors"])
	my_module.pkg_set("PRIORITY", "optional")
	my_module.pkg_add("RIGHT", "WRITE_EXTERNAL_STORAGE")
	my_module.pkg_add("RIGHT", "SET_ORIENTATION")
	
	return my_module
コード例 #28
0
ファイル: lutin_ewol.py プロジェクト: biddyweb/ewol
def create(target, module_name):
	# module name is 'edn' and type binary.
	my_module = module.Module(__file__, module_name, get_type())
	
	# add extra compilation flags:
	my_module.add_extra_compile_flags()
	# add the file to compile:
	my_module.add_src_file([
		'ewol/ewol.cpp',
		'ewol/debug.cpp',
		'ewol/Padding.cpp',
		'ewol/translate.cpp'
		])
	my_module.add_header_file([
		'ewol/debug.h', # TODO : Remove this ...
		'ewol/ewol.h',
		'ewol/Padding.h',
		'ewol/translate.h'
		])
	
	# compositing:
	my_module.add_src_file([
		'ewol/compositing/Compositing.cpp',
		'ewol/compositing/TextBase.cpp',
		'ewol/compositing/Text.cpp',
		'ewol/compositing/TextDF.cpp',
		'ewol/compositing/Drawing.cpp',
		'ewol/compositing/Image.cpp',
		'ewol/compositing/Sprite.cpp',
		'ewol/compositing/Shaper.cpp',
		'ewol/compositing/Area.cpp'
		])
	my_module.add_header_file([
		'ewol/compositing/Text.h',
		'ewol/compositing/Drawing.h',
		'ewol/compositing/Sprite.h',
		'ewol/compositing/Area.h',
		'ewol/compositing/Shaper.h',
		'ewol/compositing/TextDF.h',
		'ewol/compositing/TextBase.h',
		'ewol/compositing/Compositing.h',
		'ewol/compositing/Image.h'
		])
	
	# context:
	my_module.add_src_file([
		'ewol/context/ConfigFont.cpp',
		'ewol/context/Context.cpp',
		'ewol/context/InputManager.cpp'
		])
	my_module.add_header_file([
		'ewol/context/ConfigFont.h',
		'ewol/context/Context.h',
		'ewol/context/Application.h',
		'ewol/context/InputManager.h'
		])
	
	# event properties:
	my_module.add_src_file([
		'ewol/event/Entry.cpp',
		'ewol/event/Time.cpp',
		'ewol/event/Input.cpp'
		])
	my_module.add_header_file([
		'ewol/event/Time.h',
		'ewol/event/Input.h',
		'ewol/event/Entry.h'
		])
	
	# object:
	my_module.add_src_file([
		'ewol/object/Manager.cpp',
		'ewol/object/Object.cpp',
		'ewol/object/Worker.cpp'
		])
	my_module.add_header_file([
		'ewol/object/Worker.h',
		'ewol/object/Manager.h',
		'ewol/object/Object.h'
		])
	
	# parameter:
	my_module.add_src_file([
		'ewol/parameter/Parameter.cpp',
		'ewol/parameter/Interface.cpp',
		])
	my_module.add_header_file([
		'ewol/parameter/Value.h',
		'ewol/parameter/Interface.h',
		'ewol/parameter/Parameter.h',
		'ewol/parameter/Range.h',
		'ewol/parameter/List.h'
		])
	
	# Signal:
	my_module.add_src_file([
		'ewol/signal/Interface.cpp',
		'ewol/signal/Base.cpp'
		])
	my_module.add_header_file([
		'ewol/signal/Interface.h',
		'ewol/signal/Base.h',
		'ewol/signal/Signal.h'
		])
	
	# resources:
	my_module.add_src_file([
		'ewol/resource/Colored3DObject.cpp',
		'ewol/resource/ColorFile.cpp',
		'ewol/resource/ConfigFile.cpp',
		'ewol/resource/FontFreeType.cpp',
		'ewol/resource/Image.cpp',
		'ewol/resource/ImageDF.cpp',
		'ewol/resource/Texture.cpp',
		'ewol/resource/TexturedFont.cpp',
		'ewol/resource/DistanceFieldFont.cpp'
		])
	my_module.add_header_file([
		'ewol/resource/FontFreeType.h',
		'ewol/resource/TexturedFont.h',
		'ewol/resource/ColorFile.h',
		'ewol/resource/font/FontBase.h',
		'ewol/resource/font/Kerning.h',
		'ewol/resource/font/GlyphProperty.h',
		'ewol/resource/DistanceFieldFont.h',
		'ewol/resource/ImageDF.h',
		'ewol/resource/Colored3DObject.h',
		'ewol/resource/ConfigFile.h',
		'ewol/resource/Texture.h',
		'ewol/resource/Image.h'
		])
	
	# widget:
	my_module.add_src_file([
		'ewol/widget/ButtonColor.cpp',
		'ewol/widget/Button.cpp',
		'ewol/widget/CheckBox.cpp',
		'ewol/widget/ColorBar.cpp',
		'ewol/widget/Composer.cpp',
		'ewol/widget/Container.cpp',
		'ewol/widget/Container2.cpp',
		'ewol/widget/ContainerN.cpp',
		'ewol/widget/ContextMenu.cpp',
		'ewol/widget/Entry.cpp',
		'ewol/widget/Gird.cpp',
		'ewol/widget/Image.cpp',
		'ewol/widget/Joystick.cpp',
		'ewol/widget/Label.cpp',
		'ewol/widget/Layer.cpp',
		'ewol/widget/List.cpp',
		'ewol/widget/ListFileSystem.cpp',
		'ewol/widget/Manager.cpp',
		'ewol/widget/Menu.cpp',
		'ewol/widget/meta/ColorChooser.cpp',
		'ewol/widget/meta/FileChooser.cpp',
		'ewol/widget/meta/Parameter.cpp',
		'ewol/widget/meta/ParameterList.cpp',
		'ewol/widget/meta/StdPopUp.cpp',
		'ewol/widget/PopUp.cpp',
		'ewol/widget/ProgressBar.cpp',
		'ewol/widget/Scroll.cpp',
		'ewol/widget/Sizer.cpp',
		'ewol/widget/Slider.cpp',
		'ewol/widget/Spacer.cpp',
		'ewol/widget/Widget.cpp',
		'ewol/widget/WidgetScrolled.cpp',
		'ewol/widget/Windows.cpp',
		'ewol/widget/WSlider.cpp',
		])
	my_module.add_header_file([
		'ewol/widget/Menu.h',
		'ewol/widget/Slider.h',
		'ewol/widget/WidgetScrolled.h',
		'ewol/widget/ListFileSystem.h',
		'ewol/widget/Panned.h',
		'ewol/widget/WSlider.h',
		'ewol/widget/Container2.h',
		'ewol/widget/Windows.h',
		'ewol/widget/CheckBox.h',
		'ewol/widget/Container.h',
		'ewol/widget/PopUp.h',
		'ewol/widget/Label.h',
		'ewol/widget/Composer.h',
		'ewol/widget/Sizer.h',
		'ewol/widget/Scroll.h',
		'ewol/widget/ContainerN.h',
		'ewol/widget/Spacer.h',
		'ewol/widget/Button.h',
		'ewol/widget/Manager.h',
		'ewol/widget/Entry.h',
		'ewol/widget/ContextMenu.h',
		'ewol/widget/Gird.h',
		'ewol/widget/ProgressBar.h',
		'ewol/widget/ColorBar.h',
		'ewol/widget/ButtonColor.h',
		'ewol/widget/Layer.h',
		'ewol/widget/Joystick.h',
		'ewol/widget/Widget.h',
		'ewol/widget/meta/StdPopUp.h',
		'ewol/widget/meta/ParameterList.h',
		'ewol/widget/meta/ColorChooser.h',
		'ewol/widget/meta/Parameter.h',
		'ewol/widget/meta/FileChooser.h',
		'ewol/widget/Image.h',
		'ewol/widget/List.h'
		])
	
	my_module.copy_path('data/theme/shape/square/*','theme/shape/square')
	my_module.copy_path('data/theme/shape/round/*','theme/shape/round')
	my_module.copy_path('data/theme/color/black/*','theme/color/black')
	my_module.copy_path('data/theme/color/white/*','theme/color/white')
	my_module.copy_path('data/textured.*','')
	my_module.copy_path('data/texturedNoMaterial.*','')
	my_module.copy_path('data/text.*','')
	my_module.copy_path('data/simple3D.*','')
	my_module.copy_path('data/color.*','')
	my_module.copy_path('data/color3.*','')
	my_module.copy_path('data/textured3D2.*','')
	my_module.copy_path('data/textured3D.*','')
	my_module.copy_path('data/texturedDF.*','')
	my_module.copy_path('data/fontDistanceField/*','fontDistanceField')
	my_module.copy_path('data/translate/*','translate/ewol')
	
	# name of the dependency
	my_module.add_module_depend(['etk', 'gale', 'freetype', 'exml', 'ejson', 'egami', 'edtaa3'])
	
	my_module.add_path(tools.get_current_path(__file__))
	
	tagFile = tools.get_current_path(__file__) + "/tag"
	ewolVersionID = tools.file_read_data(tagFile)
	my_module.compile_flags('c++', [
		"-DEWOL_VERSION=\"\\\""+ewolVersionID+"\\\"\""
		])
	
	return my_module