示例#1
0
def create(target):
	myModule = module.Module(__file__, 'lua', 'LIBRARY')
	
	myModule.add_module_depend('etk')
	
	myModule.compile_flags_CC([
		'-DLUA_VERSION_TAG_NAME="\"5.2\""',
		'-Wall'])
	
	myModule.add_export_path(tools.get_current_path(__file__))
	myModule.add_path(tools.get_current_path(__file__)+"/lua/")
	
	
	myModule.add_export_flag_CC('-DLUA_COMPAT_ALL');
	
	#ifeq ("$(TARGET_OS)","Windows")
	#	myModule.compile_flags_CC('-D_WIN32')
	#else
	myModule.compile_flags_CC('-DLUA_USE_LINUX')
	#endif
	
	
	myModule.add_src_file([
		'lua/lapi.cpp',
		'lua/lauxlib.cpp',
		'lua/lbaselib.cpp',
		'lua/lbitlib.cpp',
		'lua/lcode.cpp',
		'lua/lcorolib.cpp',
		'lua/lctype.cpp',
		'lua/ldblib.cpp',
		'lua/ldebug.cpp',
		'lua/ldo.cpp',
		'lua/ldump.cpp',
		'lua/lfunc.cpp',
		'lua/lgc.cpp',
		'lua/linit.cpp',
		'lua/liolib.cpp',
		'lua/llex.cpp',
		'lua/lmathlib.cpp',
		'lua/lmem.cpp',
		'lua/loadlib.cpp',
		'lua/lobject.cpp',
		'lua/lopcodes.cpp',
		'lua/loslib.cpp',
		'lua/lparser.cpp',
		'lua/lstate.cpp',
		'lua/lstring.cpp',
		'lua/lstrlib.cpp',
		'lua/ltable.cpp',
		'lua/ltablib.cpp',
		'lua/ltm.cpp',
		'lua/lundump.cpp',
		'lua/lvm.cpp',
		'lua/lzio.cpp'])
	
	
	
	# add the currrent module at the 
	return myModule
示例#2
0
def create(target):
	if target.name=="Windows":
		myModule = module.Module(__file__, 'z', 'LIBRARY')
		myModule.add_src_file([
			"zlib/adler32.c",
			"zlib/crc32.c",
			"zlib/deflate.c",
			"zlib/infback.c",
			"zlib/inffast.c",
			"zlib/inflate.c",
			"zlib/inftrees.c",
			"zlib/trees.c",
			"zlib/zutil.c",
			"zlib/compress.c",
			"zlib/uncompr.c",
			"zlib/gzclose.c",
			"zlib/gzlib.c",
			"zlib/gzread.c",
			"zlib/gzwrite.c"])
		
		myModule.add_export_path(tools.get_current_path(__file__))
		myModule.add_export_path(tools.get_current_path(__file__) + "/zlib")
		
		myModule.compile_flags_CC([
			"-D_LARGEFILE64_SOURCE=1",
			"-DHAVE_HIDDEN"])
		
		# add the currrent module at the 
		return myModule
	else:
		myModule = module.Module(__file__, 'z', 'PREBUILD')
		
		myModule.add_export_flag_LD('-lz')
		# add the currrent module at the 
		return myModule
示例#3
0
def create(target):
	# module name is 'edn' and type binary.
	myModule = module.Module(__file__, 'test_ewol', 'PACKAGE')
	# add the file to compile:
	myModule.add_src_file([
		'appl/debug.cpp',
		'appl/init.cpp',
		'appl/MainWindows.cpp',
		'appl/TestButton.cpp',
		'appl/TestCheckBox.cpp',
		'appl/TestImage.cpp',
		'appl/TestButtonColor.cpp',
		'appl/TestLabel.cpp',
		'appl/TestDistanceField.cpp'])
	# 'appl/TestScene.cpp'
	
	myModule.add_module_depend(['ewol'])
	
	now = datetime.datetime.now()
	
	versionID=str(now.year-2013)+"."+str(now.month)+"."+str(now.day)
	
	myModule.compile_flags_CC([
		"-DPROJECT_NAME=\"\\\""+myModule.name+"\\\"\"",
		"-DAPPL_VERSION_TAG_NAME=\"\\\""+versionID+"\\\"\"",
		"-DBUILD_TIME=\"\\\""+str(now.day)+"/"+str(now.month)+"/"+str(now.year)+"\\\"\""])
	
	myModule.copy_file('../data/icon.png','icon.png')
	
	myModule.copy_folder('../data/icon.*','')
	myModule.copy_folder('../data/cube.*','')
	myModule.copy_folder('../data/grass.*','')
	myModule.copy_folder('../data/stone*','')
	myModule.copy_folder('../data/sphere.png','')
	myModule.copy_folder('../data/sphere.obj','')
	
	myModule.add_path(tools.get_current_path(__file__))
	
	myModule.copy_folder("../data/FreeSerif*","fonts/")
	
	
	# set the package properties :
	myModule.pkg_set("VERSION", versionID)
	myModule.pkg_set("COMPAGNY_TYPE", "org")
	myModule.pkg_set("COMPAGNY_NAME", "Edouard DUPIN")
	myModule.pkg_set("MAINTAINER", ["Mr DUPIN Edouard <*****@*****.**>"])
	myModule.pkg_set("ICON", tools.get_current_path(__file__) + "/../data/icon.png")
	myModule.pkg_set("SECTION", ["Development"])
	myModule.pkg_set("PRIORITY", "optional")
	myModule.pkg_set("DESCRIPTION", "ewol test software")
	myModule.pkg_set("NAME", "test software")
	
	myModule.pkg_add("RIGHT", "SET_ORIENTATION")
	myModule.pkg_add("RIGHT", "VIBRATE")
	
	# add the currrent module at the 
	return myModule
示例#4
0
def create(target):
	myModule = module.Module(__file__, 'gameplay', 'LIBRARY')
	
	# add the file to compile:
	myModule.add_src_file([
		'ege/debug.cpp',
		'ege/AudioElement.cpp',
		'ege/AudioEngine.cpp',
		'ege/Camera.cpp'
		])
	
	# myModule.copy_folder('data/ParticuleMesh.*','')
	
	# name of the dependency
	myModule.add_module_depend(['etk', 'ewol', 'bullet'])
	
	myModule.compile_flags_CC([
		'-Wno-write-strings',
		'-Wall'])
	
	myModule.add_export_path(tools.get_current_path(__file__))
	
	
	# add the currrent module at the 
	return myModule
示例#5
0
def create(target):
	# module name is 'edn' and type binary.
	myModule = module.Module(__file__, 'date', 'LIBRARY')
	# add the file to compile:
	
	
	myModule.add_src_file([
		'date/date.cpp'])
	
	now = datetime.datetime.now()
	
	myModule.compile_flags_CC([
		'-Wno-write-strings',
		'-Wall',
		"-DBUILD_DAY=\""+str(now.day)+"\"",
		"-DBUILD_MONTH=\""+str(now.month)+"\"",
		"-DBUILD_YEAR=\""+str(now.year)+"\"",
		"-DBUILD_HOUR=\""+str(now.hour)+"\"",
		"-DBUILD_MINUTE=\""+str(now.minute)+"\"",
		"-DBUILD_SECOND=\""+str(now.second)+"\""])
	
	myModule.add_export_path(tools.get_current_path(__file__))
	
	# add the currrent module at the 
	return myModule
示例#6
0
def create(target):
    # module name is 'edn' and type binary.
    myModule = module.Module(__file__, 'edtaa3', 'LIBRARY')

    # add the file to compile:
    myModule.add_src_file(['edtaa3/edtaa3func.c'])

    myModule.add_export_path(tools.get_current_path(__file__))

    # add the currrent module at the
    return myModule
示例#7
0
def create(target):
	# module name is 'edn' and type binary.
	myModule = module.Module(__file__, 'edtaa3', 'LIBRARY')
	
	# add the file to compile:
	myModule.add_src_file([
		'edtaa3/edtaa3func.c'
		])
	
	myModule.add_export_path(tools.get_current_path(__file__))
	
	# add the currrent module at the 
	return myModule
def create(target):
	myModule = module.Module(__file__, 'audio_algo_aec', 'LIBRARY')
	myModule.add_src_file([
		'audio/algo/aec/debug.cpp',
		'audio/algo/aec/convolution.cpp',
		'audio/algo/aec/power.cpp',
		'audio/algo/aec/updateFilter.cpp',
		'audio/algo/aec/Lms.cpp',
		'audio/algo/aec/Nlms.cpp'
		])
	myModule.add_module_depend(['etk'])
	myModule.add_export_path(tools.get_current_path(__file__))
	# return module
	return myModule
示例#9
0
def create(target):
	if target.name=="Windows":
		#http://glew.sourceforge.net/index.html
		myModule = module.Module(__file__, 'glew', 'PREBUILD')
		
		myModule.add_export_path(tools.get_current_path(__file__) + "/glew/include/")
		if target.config["bus-size"] == "32":
			myModule.add_export_flag_LD([
				tools.get_current_path(__file__) + "/glew/lib/Release/Win32/glew32s.lib"
				])
		else:
			myModule.add_export_flag_LD([
				tools.get_current_path(__file__) + "/glew/lib/Release/x64/glew32s.lib",
				])
		myModule.add_export_flag_LD([
			"-lopengl32",
			"-lgdi32",
			"-static-libgcc",
			"-static-libstdc++"])
		
		# add the currrent module at the 
		return myModule
	else:
		return None
示例#10
0
def create(target):
    if target.name == "Windows":
        #http://glew.sourceforge.net/index.html
        myModule = module.Module(__file__, 'glew', 'PREBUILD')

        myModule.add_export_path(
            tools.get_current_path(__file__) + "/glew/include/")
        if target.config["bus-size"] == "32":
            myModule.add_export_flag_LD([
                tools.get_current_path(__file__) +
                "/glew/lib/Release/Win32/glew32s.lib"
            ])
        else:
            myModule.add_export_flag_LD([
                tools.get_current_path(__file__) +
                "/glew/lib/Release/x64/glew32s.lib",
            ])
        myModule.add_export_flag_LD(
            ["-lopengl32", "-lgdi32", "-static-libgcc", "-static-libstdc++"])

        # add the currrent module at the
        return myModule
    else:
        return None
示例#11
0
def create(target):
    if target.name == "Windows":
        myModule = module.Module(__file__, 'z', 'LIBRARY')
        myModule.add_src_file([
            "zlib/adler32.c", "zlib/crc32.c", "zlib/deflate.c",
            "zlib/infback.c", "zlib/inffast.c", "zlib/inflate.c",
            "zlib/inftrees.c", "zlib/trees.c", "zlib/zutil.c",
            "zlib/compress.c", "zlib/uncompr.c", "zlib/gzclose.c",
            "zlib/gzlib.c", "zlib/gzread.c", "zlib/gzwrite.c"
        ])

        myModule.add_export_path(tools.get_current_path(__file__))
        myModule.add_export_path(tools.get_current_path(__file__) + "/zlib")

        myModule.compile_flags_CC(["-D_LARGEFILE64_SOURCE=1", "-DHAVE_HIDDEN"])

        # add the currrent module at the
        return myModule
    else:
        myModule = module.Module(__file__, 'z', 'PREBUILD')

        myModule.add_export_flag_LD('-lz')
        # add the currrent module at the
        return myModule
示例#12
0
def create(target):
	myModule = module.Module(__file__, 'minizip', 'LIBRARY')
	myModule.add_src_file([
		"zlib/contrib/minizip/unzip.c",
		"zlib/contrib/minizip/zip.c",
		"zlib/contrib/minizip/miniunz.c",
		"zlib/contrib/minizip/ioapi.c"])
	
	myModule.add_export_path(tools.get_current_path(__file__) + "/zlib/contrib/")
	
	myModule.add_module_depend('z')
	
	myModule.compile_flags_CC([
		"-DNOCRYPT",
		"-DIOAPI_NO_64"])
	
	if target.name=="IOs" or target.name=="MacOs":
		myModule.compile_flags_CC("-Wno-implicit-function-declaration")
	
	# add the currrent module at the 
	return myModule
示例#13
0
def create(target):
    # module name is 'edn' and type binary.
    myModule = module.Module(__file__, 'date', 'LIBRARY')
    # add the file to compile:

    myModule.add_src_file(['date/date.cpp'])

    now = datetime.datetime.now()

    myModule.compile_flags_CC([
        '-Wno-write-strings', '-Wall', "-DBUILD_DAY=\"" + str(now.day) + "\"",
        "-DBUILD_MONTH=\"" + str(now.month) + "\"",
        "-DBUILD_YEAR=\"" + str(now.year) + "\"",
        "-DBUILD_HOUR=\"" + str(now.hour) + "\"",
        "-DBUILD_MINUTE=\"" + str(now.minute) + "\"",
        "-DBUILD_SECOND=\"" + str(now.second) + "\""
    ])

    myModule.add_export_path(tools.get_current_path(__file__))

    # add the currrent module at the
    return myModule
示例#14
0
def create(target):
	myModule = module.Module(__file__, 'linearmath', 'LIBRARY')
	#remove compilation warning (specific for external libs):
	myModule.remove_compile_warning()
	
	myModule.add_src_file([
		'bullet/src/LinearMath/btQuickprof.cpp',
		'bullet/src/LinearMath/btGeometryUtil.cpp',
		'bullet/src/LinearMath/btAlignedAllocator.cpp',
		'bullet/src/LinearMath/btSerializer.cpp',
		'bullet/src/LinearMath/btConvexHull.cpp',
		'bullet/src/LinearMath/btPolarDecomposition.cpp',
		'bullet/src/LinearMath/btVector3.cpp',
		'bullet/src/LinearMath/btConvexHullComputer.cpp'])
	
	myModule.compile_flags_CC([
		'-Wno-write-strings',
		'-DHAVE_CONFIG_H',
		'-O2'])
	
	myModule.add_export_path(tools.get_current_path(__file__)+"/bullet/src/")
	
	# add the currrent module at the 
	return myModule
示例#15
0
def create(target):
    myModule = module.Module(__file__, 'bullet', 'LIBRARY')

    myModule.add_module_depend(['linearmath'])
    #remove compilation warning (specific for external libs):
    myModule.remove_compile_warning()

    myModule.compile_flags_CC(['-Wno-write-strings', '-DHAVE_CONFIG_H', '-O2'])

    myModule.add_export_path(tools.get_current_path(__file__) + "/bullet/src/")
    myModule.add_export_path(tools.get_current_path(__file__))
    myModule.add_path(
        tools.get_current_path(__file__) +
        "/bullet/Extras/ConvexDecomposition")

    # lib BulletCollision
    myModule.add_src_file([
        'bullet/src/BulletCollision/NarrowPhaseCollision/btRaycastCallback.cpp',
        'bullet/src/BulletCollision/NarrowPhaseCollision/btMinkowskiPenetrationDepthSolver.cpp',
        'bullet/src/BulletCollision/NarrowPhaseCollision/btSubSimplexConvexCast.cpp',
        'bullet/src/BulletCollision/NarrowPhaseCollision/btGjkEpaPenetrationDepthSolver.cpp',
        'bullet/src/BulletCollision/NarrowPhaseCollision/btGjkConvexCast.cpp',
        'bullet/src/BulletCollision/NarrowPhaseCollision/btPersistentManifold.cpp',
        'bullet/src/BulletCollision/NarrowPhaseCollision/btConvexCast.cpp',
        'bullet/src/BulletCollision/NarrowPhaseCollision/btPolyhedralContactClipping.cpp',
        'bullet/src/BulletCollision/NarrowPhaseCollision/btContinuousConvexCollision.cpp',
        'bullet/src/BulletCollision/NarrowPhaseCollision/btGjkPairDetector.cpp',
        'bullet/src/BulletCollision/NarrowPhaseCollision/btGjkEpa2.cpp',
        'bullet/src/BulletCollision/NarrowPhaseCollision/btVoronoiSimplexSolver.cpp',
        'bullet/src/BulletCollision/CollisionDispatch/btCompoundCompoundCollisionAlgorithm.cpp',
        'bullet/src/BulletCollision/CollisionDispatch/btHashedSimplePairCache.cpp',
        'bullet/src/BulletCollision/CollisionDispatch/btActivatingCollisionAlgorithm.cpp',
        'bullet/src/BulletCollision/CollisionDispatch/btCollisionObject.cpp',
        'bullet/src/BulletCollision/CollisionDispatch/btEmptyCollisionAlgorithm.cpp',
        'bullet/src/BulletCollision/CollisionDispatch/btGhostObject.cpp',
        'bullet/src/BulletCollision/CollisionDispatch/btSphereSphereCollisionAlgorithm.cpp',
        'bullet/src/BulletCollision/CollisionDispatch/btSphereBoxCollisionAlgorithm.cpp',
        'bullet/src/BulletCollision/CollisionDispatch/btCollisionDispatcher.cpp',
        'bullet/src/BulletCollision/CollisionDispatch/btDefaultCollisionConfiguration.cpp',
        'bullet/src/BulletCollision/CollisionDispatch/btSimulationIslandManager.cpp',
        'bullet/src/BulletCollision/CollisionDispatch/btBoxBoxDetector.cpp',
        'bullet/src/BulletCollision/CollisionDispatch/btConvexPlaneCollisionAlgorithm.cpp',
        'bullet/src/BulletCollision/CollisionDispatch/btConvexConcaveCollisionAlgorithm.cpp',
        'bullet/src/BulletCollision/CollisionDispatch/btBoxBoxCollisionAlgorithm.cpp',
        'bullet/src/BulletCollision/CollisionDispatch/btBox2dBox2dCollisionAlgorithm.cpp',
        'bullet/src/BulletCollision/CollisionDispatch/SphereTriangleDetector.cpp',
        'bullet/src/BulletCollision/CollisionDispatch/btInternalEdgeUtility.cpp',
        'bullet/src/BulletCollision/CollisionDispatch/btManifoldResult.cpp',
        'bullet/src/BulletCollision/CollisionDispatch/btCollisionWorld.cpp',
        'bullet/src/BulletCollision/CollisionDispatch/btSphereTriangleCollisionAlgorithm.cpp',
        'bullet/src/BulletCollision/CollisionDispatch/btConvexConvexAlgorithm.cpp',
        'bullet/src/BulletCollision/CollisionDispatch/btConvex2dConvex2dAlgorithm.cpp',
        'bullet/src/BulletCollision/CollisionDispatch/btUnionFind.cpp',
        'bullet/src/BulletCollision/CollisionDispatch/btCompoundCollisionAlgorithm.cpp',
        'bullet/src/BulletCollision/CollisionShapes/btTetrahedronShape.cpp',
        'bullet/src/BulletCollision/CollisionShapes/btShapeHull.cpp',
        'bullet/src/BulletCollision/CollisionShapes/btMinkowskiSumShape.cpp',
        'bullet/src/BulletCollision/CollisionShapes/btCompoundShape.cpp',
        'bullet/src/BulletCollision/CollisionShapes/btConeShape.cpp',
        'bullet/src/BulletCollision/CollisionShapes/btConvexPolyhedron.cpp',
        'bullet/src/BulletCollision/CollisionShapes/btMultiSphereShape.cpp',
        'bullet/src/BulletCollision/CollisionShapes/btUniformScalingShape.cpp',
        'bullet/src/BulletCollision/CollisionShapes/btSphereShape.cpp',
        'bullet/src/BulletCollision/CollisionShapes/btTriangleIndexVertexArray.cpp',
        'bullet/src/BulletCollision/CollisionShapes/btBvhTriangleMeshShape.cpp',
        'bullet/src/BulletCollision/CollisionShapes/btTriangleMeshShape.cpp',
        'bullet/src/BulletCollision/CollisionShapes/btTriangleBuffer.cpp',
        'bullet/src/BulletCollision/CollisionShapes/btStaticPlaneShape.cpp',
        'bullet/src/BulletCollision/CollisionShapes/btPolyhedralConvexShape.cpp',
        'bullet/src/BulletCollision/CollisionShapes/btEmptyShape.cpp',
        'bullet/src/BulletCollision/CollisionShapes/btCollisionShape.cpp',
        'bullet/src/BulletCollision/CollisionShapes/btConvexShape.cpp',
        'bullet/src/BulletCollision/CollisionShapes/btConvex2dShape.cpp',
        'bullet/src/BulletCollision/CollisionShapes/btConvexInternalShape.cpp',
        'bullet/src/BulletCollision/CollisionShapes/btConvexHullShape.cpp',
        'bullet/src/BulletCollision/CollisionShapes/btTriangleCallback.cpp',
        'bullet/src/BulletCollision/CollisionShapes/btCapsuleShape.cpp',
        'bullet/src/BulletCollision/CollisionShapes/btConvexTriangleMeshShape.cpp',
        'bullet/src/BulletCollision/CollisionShapes/btConcaveShape.cpp',
        'bullet/src/BulletCollision/CollisionShapes/btConvexPointCloudShape.cpp',
        'bullet/src/BulletCollision/CollisionShapes/btBoxShape.cpp',
        'bullet/src/BulletCollision/CollisionShapes/btBox2dShape.cpp',
        'bullet/src/BulletCollision/CollisionShapes/btOptimizedBvh.cpp',
        'bullet/src/BulletCollision/CollisionShapes/btHeightfieldTerrainShape.cpp',
        'bullet/src/BulletCollision/CollisionShapes/btMultimaterialTriangleMeshShape.cpp',
        'bullet/src/BulletCollision/CollisionShapes/btCylinderShape.cpp',
        'bullet/src/BulletCollision/CollisionShapes/btScaledBvhTriangleMeshShape.cpp',
        'bullet/src/BulletCollision/CollisionShapes/btStridingMeshInterface.cpp',
        'bullet/src/BulletCollision/CollisionShapes/btTriangleIndexVertexMaterialArray.cpp',
        'bullet/src/BulletCollision/CollisionShapes/btTriangleMesh.cpp',
        'bullet/src/BulletCollision/BroadphaseCollision/btAxisSweep3.cpp',
        'bullet/src/BulletCollision/BroadphaseCollision/btOverlappingPairCache.cpp',
        'bullet/src/BulletCollision/BroadphaseCollision/btDbvtBroadphase.cpp',
        'bullet/src/BulletCollision/BroadphaseCollision/btMultiSapBroadphase.cpp',
        'bullet/src/BulletCollision/BroadphaseCollision/btDispatcher.cpp',
        'bullet/src/BulletCollision/BroadphaseCollision/btBroadphaseProxy.cpp',
        'bullet/src/BulletCollision/BroadphaseCollision/btQuantizedBvh.cpp',
        'bullet/src/BulletCollision/BroadphaseCollision/btCollisionAlgorithm.cpp',
        'bullet/src/BulletCollision/BroadphaseCollision/btDbvt.cpp',
        'bullet/src/BulletCollision/BroadphaseCollision/btSimpleBroadphase.cpp',
        'bullet/src/BulletCollision/Gimpact/btGImpactBvh.cpp',
        'bullet/src/BulletCollision/Gimpact/btGImpactQuantizedBvh.cpp',
        'bullet/src/BulletCollision/Gimpact/btTriangleShapeEx.cpp',
        'bullet/src/BulletCollision/Gimpact/btGImpactCollisionAlgorithm.cpp',
        'bullet/src/BulletCollision/Gimpact/btGImpactShape.cpp',
        'bullet/src/BulletCollision/Gimpact/gim_box_set.cpp',
        'bullet/src/BulletCollision/Gimpact/gim_contact.cpp',
        'bullet/src/BulletCollision/Gimpact/gim_memory.cpp',
        'bullet/src/BulletCollision/Gimpact/gim_tri_collision.cpp'
    ])

    # lib BulletDynamics
    myModule.add_src_file([
        'bullet/src/BulletDynamics/Dynamics/btRigidBody.cpp',
        'bullet/src/BulletDynamics/Dynamics/btSimpleDynamicsWorld.cpp',
        'bullet/src/BulletDynamics/Dynamics/Bullet-C-API.cpp',
        'bullet/src/BulletDynamics/Dynamics/btDiscreteDynamicsWorld.cpp',
        'bullet/src/BulletDynamics/ConstraintSolver/btGearConstraint.cpp',
        'bullet/src/BulletDynamics/ConstraintSolver/btGeneric6DofConstraint.cpp',
        'bullet/src/BulletDynamics/ConstraintSolver/btGeneric6DofSpringConstraint.cpp',
        'bullet/src/BulletDynamics/ConstraintSolver/btSolve2LinearConstraint.cpp',
        'bullet/src/BulletDynamics/ConstraintSolver/btPoint2PointConstraint.cpp',
        'bullet/src/BulletDynamics/ConstraintSolver/btTypedConstraint.cpp',
        'bullet/src/BulletDynamics/ConstraintSolver/btContactConstraint.cpp',
        'bullet/src/BulletDynamics/ConstraintSolver/btSliderConstraint.cpp',
        'bullet/src/BulletDynamics/ConstraintSolver/btConeTwistConstraint.cpp',
        'bullet/src/BulletDynamics/ConstraintSolver/btHingeConstraint.cpp',
        'bullet/src/BulletDynamics/ConstraintSolver/btHinge2Constraint.cpp',
        'bullet/src/BulletDynamics/ConstraintSolver/btUniversalConstraint.cpp',
        'bullet/src/BulletDynamics/ConstraintSolver/btSequentialImpulseConstraintSolver.cpp',
        'bullet/src/BulletDynamics/Vehicle/btWheelInfo.cpp',
        'bullet/src/BulletDynamics/Vehicle/btRaycastVehicle.cpp',
        'bullet/src/BulletDynamics/Character/btKinematicCharacterController.cpp'
    ])

    # lib BulletSoftBody
    myModule.add_src_file([
        'bullet/src/BulletSoftBody/btDefaultSoftBodySolver.cpp',
        'bullet/src/BulletSoftBody/btSoftBodyRigidBodyCollisionConfiguration.cpp',
        'bullet/src/BulletSoftBody/btSoftBody.cpp',
        'bullet/src/BulletSoftBody/btSoftRigidCollisionAlgorithm.cpp',
        'bullet/src/BulletSoftBody/btSoftBodyConcaveCollisionAlgorithm.cpp',
        'bullet/src/BulletSoftBody/btSoftRigidDynamicsWorld.cpp',
        'bullet/src/BulletSoftBody/btSoftBodyHelpers.cpp',
        'bullet/src/BulletSoftBody/btSoftSoftCollisionAlgorithm.cpp'
    ])

    # lib gimpactutils
    myModule.add_src_file(
        ['bullet/Extras/GIMPACTUtils/btGImpactConvexDecompositionShape.cpp'])
    """
	# lib convexdecomposition
	myModule.add_src_file([
		'bullet/Extras/ConvexDecomposition/concavity.cpp',
		'bullet/Extras/ConvexDecomposition/ConvexDecomposition.cpp',
		'bullet/Extras/ConvexDecomposition/vlookup.cpp',
		'bullet/Extras/ConvexDecomposition/bestfit.cpp',
		'bullet/Extras/ConvexDecomposition/Convexbuilder.cpp',
		'bullet/Extras/ConvexDecomposition/cd_hull.cpp',
		'bullet/Extras/ConvexDecomposition/raytri.cpp',
		'bullet/Extras/ConvexDecomposition/splitplane.cpp',
		'bullet/Extras/ConvexDecomposition/float_math.cpp',
		'bullet/Extras/ConvexDecomposition/planetri.cpp',
		'bullet/Extras/ConvexDecomposition/cd_wavefront.cpp',
		'bullet/Extras/ConvexDecomposition/bestfitobb.cpp',
		'bullet/Extras/ConvexDecomposition/meshvolume.cpp',
		'bullet/Extras/ConvexDecomposition/fitsphere.cpp'])
	"""
    """
	# lib HACD
	myModule.add_src_file([
		'bullet/Extras/HACD/hacdGraph.cpp',
		'bullet/Extras/HACD/hacdHACD.cpp',
		'bullet/Extras/HACD/hacdICHull.cpp',
		'bullet/Extras/HACD/hacdManifoldMesh.cpp'])
	"""

    # add the currrent module at the
    return myModule
示例#16
0
def create(target):
	myModule = module.Module(__file__, 'bullet', 'LIBRARY')
	
	myModule.add_module_depend(['linearmath'])
	#remove compilation warning (specific for external libs):
	myModule.remove_compile_warning()
	
	myModule.compile_flags_CC([
		'-Wno-write-strings',
		'-DHAVE_CONFIG_H',
		'-O2'])
	
	myModule.add_export_path(tools.get_current_path(__file__)+"/bullet/src/")
	myModule.add_export_path(tools.get_current_path(__file__))
	myModule.add_path(tools.get_current_path(__file__)+"/bullet/Extras/ConvexDecomposition")
	
	# lib BulletCollision
	myModule.add_src_file([
		'bullet/src/BulletCollision/NarrowPhaseCollision/btRaycastCallback.cpp',
		'bullet/src/BulletCollision/NarrowPhaseCollision/btMinkowskiPenetrationDepthSolver.cpp',
		'bullet/src/BulletCollision/NarrowPhaseCollision/btSubSimplexConvexCast.cpp',
		'bullet/src/BulletCollision/NarrowPhaseCollision/btGjkEpaPenetrationDepthSolver.cpp',
		'bullet/src/BulletCollision/NarrowPhaseCollision/btGjkConvexCast.cpp',
		'bullet/src/BulletCollision/NarrowPhaseCollision/btPersistentManifold.cpp',
		'bullet/src/BulletCollision/NarrowPhaseCollision/btConvexCast.cpp',
		'bullet/src/BulletCollision/NarrowPhaseCollision/btPolyhedralContactClipping.cpp',
		'bullet/src/BulletCollision/NarrowPhaseCollision/btContinuousConvexCollision.cpp',
		'bullet/src/BulletCollision/NarrowPhaseCollision/btGjkPairDetector.cpp',
		'bullet/src/BulletCollision/NarrowPhaseCollision/btGjkEpa2.cpp',
		'bullet/src/BulletCollision/NarrowPhaseCollision/btVoronoiSimplexSolver.cpp',
		'bullet/src/BulletCollision/CollisionDispatch/btCompoundCompoundCollisionAlgorithm.cpp',
		'bullet/src/BulletCollision/CollisionDispatch/btHashedSimplePairCache.cpp',
		'bullet/src/BulletCollision/CollisionDispatch/btActivatingCollisionAlgorithm.cpp',
		'bullet/src/BulletCollision/CollisionDispatch/btCollisionObject.cpp',
		'bullet/src/BulletCollision/CollisionDispatch/btEmptyCollisionAlgorithm.cpp',
		'bullet/src/BulletCollision/CollisionDispatch/btGhostObject.cpp',
		'bullet/src/BulletCollision/CollisionDispatch/btSphereSphereCollisionAlgorithm.cpp',
		'bullet/src/BulletCollision/CollisionDispatch/btSphereBoxCollisionAlgorithm.cpp',
		'bullet/src/BulletCollision/CollisionDispatch/btCollisionDispatcher.cpp',
		'bullet/src/BulletCollision/CollisionDispatch/btDefaultCollisionConfiguration.cpp',
		'bullet/src/BulletCollision/CollisionDispatch/btSimulationIslandManager.cpp',
		'bullet/src/BulletCollision/CollisionDispatch/btBoxBoxDetector.cpp',
		'bullet/src/BulletCollision/CollisionDispatch/btConvexPlaneCollisionAlgorithm.cpp',
		'bullet/src/BulletCollision/CollisionDispatch/btConvexConcaveCollisionAlgorithm.cpp',
		'bullet/src/BulletCollision/CollisionDispatch/btBoxBoxCollisionAlgorithm.cpp',
		'bullet/src/BulletCollision/CollisionDispatch/btBox2dBox2dCollisionAlgorithm.cpp',
		'bullet/src/BulletCollision/CollisionDispatch/SphereTriangleDetector.cpp',
		'bullet/src/BulletCollision/CollisionDispatch/btInternalEdgeUtility.cpp',
		'bullet/src/BulletCollision/CollisionDispatch/btManifoldResult.cpp',
		'bullet/src/BulletCollision/CollisionDispatch/btCollisionWorld.cpp',
		'bullet/src/BulletCollision/CollisionDispatch/btSphereTriangleCollisionAlgorithm.cpp',
		'bullet/src/BulletCollision/CollisionDispatch/btConvexConvexAlgorithm.cpp',
		'bullet/src/BulletCollision/CollisionDispatch/btConvex2dConvex2dAlgorithm.cpp',
		'bullet/src/BulletCollision/CollisionDispatch/btUnionFind.cpp',
		'bullet/src/BulletCollision/CollisionDispatch/btCompoundCollisionAlgorithm.cpp',
		'bullet/src/BulletCollision/CollisionShapes/btTetrahedronShape.cpp',
		'bullet/src/BulletCollision/CollisionShapes/btShapeHull.cpp',
		'bullet/src/BulletCollision/CollisionShapes/btMinkowskiSumShape.cpp',
		'bullet/src/BulletCollision/CollisionShapes/btCompoundShape.cpp',
		'bullet/src/BulletCollision/CollisionShapes/btConeShape.cpp',
		'bullet/src/BulletCollision/CollisionShapes/btConvexPolyhedron.cpp',
		'bullet/src/BulletCollision/CollisionShapes/btMultiSphereShape.cpp',
		'bullet/src/BulletCollision/CollisionShapes/btUniformScalingShape.cpp',
		'bullet/src/BulletCollision/CollisionShapes/btSphereShape.cpp',
		'bullet/src/BulletCollision/CollisionShapes/btTriangleIndexVertexArray.cpp',
		'bullet/src/BulletCollision/CollisionShapes/btBvhTriangleMeshShape.cpp',
		'bullet/src/BulletCollision/CollisionShapes/btTriangleMeshShape.cpp',
		'bullet/src/BulletCollision/CollisionShapes/btTriangleBuffer.cpp',
		'bullet/src/BulletCollision/CollisionShapes/btStaticPlaneShape.cpp',
		'bullet/src/BulletCollision/CollisionShapes/btPolyhedralConvexShape.cpp',
		'bullet/src/BulletCollision/CollisionShapes/btEmptyShape.cpp',
		'bullet/src/BulletCollision/CollisionShapes/btCollisionShape.cpp',
		'bullet/src/BulletCollision/CollisionShapes/btConvexShape.cpp',
		'bullet/src/BulletCollision/CollisionShapes/btConvex2dShape.cpp',
		'bullet/src/BulletCollision/CollisionShapes/btConvexInternalShape.cpp',
		'bullet/src/BulletCollision/CollisionShapes/btConvexHullShape.cpp',
		'bullet/src/BulletCollision/CollisionShapes/btTriangleCallback.cpp',
		'bullet/src/BulletCollision/CollisionShapes/btCapsuleShape.cpp',
		'bullet/src/BulletCollision/CollisionShapes/btConvexTriangleMeshShape.cpp',
		'bullet/src/BulletCollision/CollisionShapes/btConcaveShape.cpp',
		'bullet/src/BulletCollision/CollisionShapes/btConvexPointCloudShape.cpp',
		'bullet/src/BulletCollision/CollisionShapes/btBoxShape.cpp',
		'bullet/src/BulletCollision/CollisionShapes/btBox2dShape.cpp',
		'bullet/src/BulletCollision/CollisionShapes/btOptimizedBvh.cpp',
		'bullet/src/BulletCollision/CollisionShapes/btHeightfieldTerrainShape.cpp',
		'bullet/src/BulletCollision/CollisionShapes/btMultimaterialTriangleMeshShape.cpp',
		'bullet/src/BulletCollision/CollisionShapes/btCylinderShape.cpp',
		'bullet/src/BulletCollision/CollisionShapes/btScaledBvhTriangleMeshShape.cpp',
		'bullet/src/BulletCollision/CollisionShapes/btStridingMeshInterface.cpp',
		'bullet/src/BulletCollision/CollisionShapes/btTriangleIndexVertexMaterialArray.cpp',
		'bullet/src/BulletCollision/CollisionShapes/btTriangleMesh.cpp',
		'bullet/src/BulletCollision/BroadphaseCollision/btAxisSweep3.cpp',
		'bullet/src/BulletCollision/BroadphaseCollision/btOverlappingPairCache.cpp',
		'bullet/src/BulletCollision/BroadphaseCollision/btDbvtBroadphase.cpp',
		'bullet/src/BulletCollision/BroadphaseCollision/btMultiSapBroadphase.cpp',
		'bullet/src/BulletCollision/BroadphaseCollision/btDispatcher.cpp',
		'bullet/src/BulletCollision/BroadphaseCollision/btBroadphaseProxy.cpp',
		'bullet/src/BulletCollision/BroadphaseCollision/btQuantizedBvh.cpp',
		'bullet/src/BulletCollision/BroadphaseCollision/btCollisionAlgorithm.cpp',
		'bullet/src/BulletCollision/BroadphaseCollision/btDbvt.cpp',
		'bullet/src/BulletCollision/BroadphaseCollision/btSimpleBroadphase.cpp',
		'bullet/src/BulletCollision/Gimpact/btGImpactBvh.cpp',
		'bullet/src/BulletCollision/Gimpact/btGImpactQuantizedBvh.cpp',
		'bullet/src/BulletCollision/Gimpact/btTriangleShapeEx.cpp',
		'bullet/src/BulletCollision/Gimpact/btGImpactCollisionAlgorithm.cpp',
		'bullet/src/BulletCollision/Gimpact/btGImpactShape.cpp',
		'bullet/src/BulletCollision/Gimpact/gim_box_set.cpp',
		'bullet/src/BulletCollision/Gimpact/gim_contact.cpp',
		'bullet/src/BulletCollision/Gimpact/gim_memory.cpp',
		'bullet/src/BulletCollision/Gimpact/gim_tri_collision.cpp'])
	
	
	
	
	
	# lib BulletDynamics
	myModule.add_src_file([
		'bullet/src/BulletDynamics/Dynamics/btRigidBody.cpp',
		'bullet/src/BulletDynamics/Dynamics/btSimpleDynamicsWorld.cpp',
		'bullet/src/BulletDynamics/Dynamics/Bullet-C-API.cpp',
		'bullet/src/BulletDynamics/Dynamics/btDiscreteDynamicsWorld.cpp',
		'bullet/src/BulletDynamics/ConstraintSolver/btGearConstraint.cpp',
		'bullet/src/BulletDynamics/ConstraintSolver/btGeneric6DofConstraint.cpp',
		'bullet/src/BulletDynamics/ConstraintSolver/btGeneric6DofSpringConstraint.cpp',
		'bullet/src/BulletDynamics/ConstraintSolver/btSolve2LinearConstraint.cpp',
		'bullet/src/BulletDynamics/ConstraintSolver/btPoint2PointConstraint.cpp',
		'bullet/src/BulletDynamics/ConstraintSolver/btTypedConstraint.cpp',
		'bullet/src/BulletDynamics/ConstraintSolver/btContactConstraint.cpp',
		'bullet/src/BulletDynamics/ConstraintSolver/btSliderConstraint.cpp',
		'bullet/src/BulletDynamics/ConstraintSolver/btConeTwistConstraint.cpp',
		'bullet/src/BulletDynamics/ConstraintSolver/btHingeConstraint.cpp',
		'bullet/src/BulletDynamics/ConstraintSolver/btHinge2Constraint.cpp',
		'bullet/src/BulletDynamics/ConstraintSolver/btUniversalConstraint.cpp',
		'bullet/src/BulletDynamics/ConstraintSolver/btSequentialImpulseConstraintSolver.cpp',
		'bullet/src/BulletDynamics/Vehicle/btWheelInfo.cpp',
		'bullet/src/BulletDynamics/Vehicle/btRaycastVehicle.cpp',
		'bullet/src/BulletDynamics/Character/btKinematicCharacterController.cpp'])
	
	
	# lib BulletSoftBody
	myModule.add_src_file([
		'bullet/src/BulletSoftBody/btDefaultSoftBodySolver.cpp',
		'bullet/src/BulletSoftBody/btSoftBodyRigidBodyCollisionConfiguration.cpp',
		'bullet/src/BulletSoftBody/btSoftBody.cpp',
		'bullet/src/BulletSoftBody/btSoftRigidCollisionAlgorithm.cpp',
		'bullet/src/BulletSoftBody/btSoftBodyConcaveCollisionAlgorithm.cpp',
		'bullet/src/BulletSoftBody/btSoftRigidDynamicsWorld.cpp',
		'bullet/src/BulletSoftBody/btSoftBodyHelpers.cpp',
		'bullet/src/BulletSoftBody/btSoftSoftCollisionAlgorithm.cpp'])
	
	# lib gimpactutils
	myModule.add_src_file([
		'bullet/Extras/GIMPACTUtils/btGImpactConvexDecompositionShape.cpp'])
	
	"""
	# lib convexdecomposition
	myModule.add_src_file([
		'bullet/Extras/ConvexDecomposition/concavity.cpp',
		'bullet/Extras/ConvexDecomposition/ConvexDecomposition.cpp',
		'bullet/Extras/ConvexDecomposition/vlookup.cpp',
		'bullet/Extras/ConvexDecomposition/bestfit.cpp',
		'bullet/Extras/ConvexDecomposition/Convexbuilder.cpp',
		'bullet/Extras/ConvexDecomposition/cd_hull.cpp',
		'bullet/Extras/ConvexDecomposition/raytri.cpp',
		'bullet/Extras/ConvexDecomposition/splitplane.cpp',
		'bullet/Extras/ConvexDecomposition/float_math.cpp',
		'bullet/Extras/ConvexDecomposition/planetri.cpp',
		'bullet/Extras/ConvexDecomposition/cd_wavefront.cpp',
		'bullet/Extras/ConvexDecomposition/bestfitobb.cpp',
		'bullet/Extras/ConvexDecomposition/meshvolume.cpp',
		'bullet/Extras/ConvexDecomposition/fitsphere.cpp'])
	"""
	
	"""
	# lib HACD
	myModule.add_src_file([
		'bullet/Extras/HACD/hacdGraph.cpp',
		'bullet/Extras/HACD/hacdHACD.cpp',
		'bullet/Extras/HACD/hacdICHull.cpp',
		'bullet/Extras/HACD/hacdManifoldMesh.cpp'])
	"""
	
	# add the currrent module at the 
	return myModule
示例#17
0
def create(target):
    # set the ewol folder for Android basic sources ...
    target.set_ewol_folder(tools.get_current_path(__file__) + "/../")

    # module name is 'edn' and type binary.
    myModule = module.Module(__file__, 'ewol', 'LIBRARY')

    # add extra compilation flags :
    myModule.add_extra_compile_flags()
    # add the file to compile:
    myModule.add_src_file([
        'ewol/ewol.cpp', 'ewol/debug.cpp', 'ewol/Padding.cpp',
        'ewol/Dimension.cpp', 'ewol/translate.cpp'
    ])

    # compositing :
    myModule.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'
    ])

    # context :
    myModule.add_src_file([
        'ewol/context/clipBoard.cpp', 'ewol/context/commandLine.cpp',
        'ewol/context/ConfigFont.cpp', 'ewol/context/Context.cpp',
        'ewol/context/cursor.cpp', 'ewol/context/InputManager.cpp'
    ])
    if target.name == "Linux":
        myModule.add_src_file('ewol/context/X11/Context.cpp')
    elif target.name == "Windows":
        myModule.add_src_file('ewol/context/Windows/Context.cpp')
    elif target.name == "Android":
        myModule.add_src_file('ewol/context/Android/Context.cpp')
    elif target.name == "MacOs":
        myModule.add_src_file([
            'ewol/context/MacOs/Context.cpp',
            'ewol/context/MacOs/Interface.mm', 'ewol/context/MacOs/Windows.mm',
            'ewol/context/MacOs/OpenglView.mm',
            'ewol/context/MacOs/AppDelegate.mm'
        ])
    elif target.name == "IOs":
        myModule.add_src_file([
            'ewol/context/IOs/Context.cpp', 'ewol/context/IOs/Interface.m',
            'ewol/context/IOs/OpenglView.mm', 'ewol/context/IOs/AppDelegate.mm'
        ])
    else:
        debug.error("unknow mode...")

    # event properties :
    myModule.add_src_file([
        'ewol/event/Entry.cpp', 'ewol/event/Time.cpp', 'ewol/event/Input.cpp'
    ])

    # Key properties :
    myModule.add_src_file([
        'ewol/key/keyboard.cpp', 'ewol/key/Special.cpp', 'ewol/key/status.cpp',
        'ewol/key/type.cpp'
    ])

    # object :
    myModule.add_src_file([
        'ewol/object/Manager.cpp', 'ewol/object/Object.cpp',
        'ewol/object/Worker.cpp', 'ewol/object/Parameter.cpp',
        'ewol/object/ParameterList.cpp', 'ewol/object/ParamList.cpp',
        'ewol/object/SignalList.cpp', 'ewol/object/SignalBase.cpp'
    ])

    # OpenGL interface :
    myModule.add_src_file(['ewol/openGL/openGL.cpp'])

    # resources :
    myModule.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/Manager.cpp', 'ewol/resource/Program.cpp',
        'ewol/resource/Resource.cpp', 'ewol/resource/Shader.cpp',
        'ewol/resource/Texture.cpp', 'ewol/resource/TexturedFont.cpp',
        'ewol/resource/DistanceFieldFont.cpp',
        'ewol/resource/VirtualBufferObject.cpp'
    ])

    # widget :
    myModule.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',
    ])

    myModule.copy_folder('../data/theme/shape/square/*', 'theme/shape/square')
    myModule.copy_folder('../data/theme/shape/round/*', 'theme/shape/round')
    myModule.copy_folder('../data/theme/color/black/*', 'theme/color/black')
    myModule.copy_folder('../data/theme/color/white/*', 'theme/color/white')
    myModule.copy_folder('../data/textured.*', '')
    myModule.copy_folder('../data/texturedNoMaterial.*', '')
    myModule.copy_folder('../data/text.*', '')
    myModule.copy_folder('../data/simple3D.*', '')
    myModule.copy_folder('../data/color.*', '')
    myModule.copy_folder('../data/color3.*', '')
    myModule.copy_folder('../data/textured3D2.*', '')
    myModule.copy_folder('../data/textured3D.*', '')
    myModule.copy_folder('../data/texturedDF.*', '')
    myModule.copy_folder('../data/fontDistanceField/*', 'fontDistanceField')
    myModule.copy_folder('../data/translate/*', 'translate/ewol/')

    # name of the dependency
    myModule.add_module_depend(
        ['etk', 'freetype', 'exml', 'ejson', 'egami', 'edtaa3', 'date'])

    myModule.add_export_path(tools.get_current_path(__file__))

    tagFile = tools.get_current_path(__file__) + "/tag"
    ewolVersionID = tools.file_read_data(tagFile)
    myModule.compile_flags_CC(
        ["-DEWOL_VERSION=\"\\\"" + ewolVersionID + "\\\"\""])

    if target.name == "Linux":
        myModule.add_export_flag_LD('-lGL')

        #`pkg-config --cflags directfb` `pkg-config --libs directfb`

        #ifeq ("$(CONFIG___EWOL_LINUX_GUI_MODE_X11__)","y")
        myModule.add_export_flag_LD('-lX11')
        #endif
        #ifeq ("$(CONFIG___EWOL_LINUX_GUI_MODE_DIRECT_FB__)","y")
        #myModule.add_export_flag_LD(['-L/usr/local/lib', '-ldirectfb', '-lfusion', '-ldirect'])
        #endif

        #http://en.wikibooks.org/wiki/OpenGL_Programming/Modern_OpenGL_Introduction
        # needed package on linux : libgl1-mesa-dev libglew1.5-dev

        #ifeq ("$(CONFIG_BUILD_PORTAUDIO)","y")
        #myModule.add_src_file('ewol/renderer/audio/interfacePortAudio.cpp')
        #endif

    elif target.name == "Android":
        myModule.add_export_flag_LD("-lGLESv2")

        myModule.add_export_flag_LD("-ldl")
        myModule.add_export_flag_LD("-llog")
        myModule.add_export_flag_LD("-landroid")
        java_tmp_dir = tools.get_current_path(
            __file__) + "/../../ewol/sources/android/src/"
        cpp_tmp_dir = tools.get_current_path(
            __file__) + "/ewol/renderer/Android/"
        java_tmp_src = java_tmp_dir + "org/ewol/EwolConstants"
        lutinMultiprocess.run_command("javac " + java_tmp_src + ".java")
        lutinMultiprocess.run_command("cd " + java_tmp_dir +
                                      " && javah org.ewol.EwolConstants")
        tools.copy_file(java_tmp_dir + "org_ewol_EwolConstants.h",
                        cpp_tmp_dir + "org_ewol_EwolConstants.h",
                        force=True)
        tools.remove_file(java_tmp_src + ".class")
    elif target.name == "Windows":
        myModule.add_module_depend("glew")
    elif target.name == "MacOs":
        myModule.add_export_flag_LD([
            "-framework Cocoa", "-framework OpenGL", "-framework QuartzCore",
            "-framework AppKit"
        ])
    elif target.name == "IOs":
        myModule.add_export_flag_LD([
            "-framework OpenGLES", "-framework CoreGraphics",
            "-framework UIKit", "-framework GLKit", "-framework Foundation",
            "-framework QuartzCore"
        ])

    # add the currrent module at the
    return myModule
示例#18
0
#!/usr/bin/python
import lutinModule
import lutinTools

lutinModule.import_path(lutinTools.get_current_path(__file__) + "/sources/")
lutinModule.import_path(lutinTools.get_current_path(__file__) + "/../ewol/")
示例#19
0
def create(target):
	# set the ewol folder for Android basic sources ...
	target.set_ewol_folder(tools.get_current_path(__file__) + "/../")
	
	# module name is 'edn' and type binary.
	myModule = module.Module(__file__, 'ewol', 'LIBRARY')
	
	# add extra compilation flags :
	myModule.add_extra_compile_flags()
	# add the file to compile:
	myModule.add_src_file([
		'ewol/ewol.cpp',
		'ewol/debug.cpp',
		'ewol/Padding.cpp',
		'ewol/Dimension.cpp',
		'ewol/translate.cpp'
		])
	
	# compositing :
	myModule.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'
		])
	
	# context :
	myModule.add_src_file([
		'ewol/context/clipBoard.cpp',
		'ewol/context/commandLine.cpp',
		'ewol/context/ConfigFont.cpp',
		'ewol/context/Context.cpp',
		'ewol/context/cursor.cpp',
		'ewol/context/InputManager.cpp'
		])
	if target.name=="Linux":
		myModule.add_src_file('ewol/context/X11/Context.cpp')
	elif target.name=="Windows":
		myModule.add_src_file('ewol/context/Windows/Context.cpp')
	elif target.name=="Android":
		myModule.add_src_file('ewol/context/Android/Context.cpp')
	elif target.name=="MacOs":
		myModule.add_src_file([
			'ewol/context/MacOs/Context.cpp',
			'ewol/context/MacOs/Interface.mm',
			'ewol/context/MacOs/Windows.mm',
			'ewol/context/MacOs/OpenglView.mm',
			'ewol/context/MacOs/AppDelegate.mm'])
	elif target.name=="IOs":
		myModule.add_src_file([
			'ewol/context/IOs/Context.cpp',
			'ewol/context/IOs/Interface.m',
			'ewol/context/IOs/OpenglView.mm',
			'ewol/context/IOs/AppDelegate.mm'])
	else:
		debug.error("unknow mode...")
	
	# event properties :
	myModule.add_src_file([
		'ewol/event/Entry.cpp',
		'ewol/event/Time.cpp',
		'ewol/event/Input.cpp'
		])
	
	# Key properties :
	myModule.add_src_file([
		'ewol/key/keyboard.cpp',
		'ewol/key/Special.cpp',
		'ewol/key/status.cpp',
		'ewol/key/type.cpp'
		])
	
	# object :
	myModule.add_src_file([
		'ewol/object/Manager.cpp',
		'ewol/object/Object.cpp',
		'ewol/object/Worker.cpp',
		'ewol/object/Parameter.cpp',
		'ewol/object/ParameterList.cpp',
		'ewol/object/ParamList.cpp',
		'ewol/object/SignalList.cpp',
		'ewol/object/SignalBase.cpp'
		])
	
	# OpenGL interface :
	myModule.add_src_file([
		'ewol/openGL/openGL.cpp'
		])
	
	# resources :
	myModule.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/Manager.cpp',
		'ewol/resource/Program.cpp',
		'ewol/resource/Resource.cpp',
		'ewol/resource/Shader.cpp',
		'ewol/resource/Texture.cpp',
		'ewol/resource/TexturedFont.cpp',
		'ewol/resource/DistanceFieldFont.cpp',
		'ewol/resource/VirtualBufferObject.cpp'
		])
	
	# widget :
	myModule.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',
		])
	
	myModule.copy_folder('../data/theme/shape/square/*','theme/shape/square')
	myModule.copy_folder('../data/theme/shape/round/*','theme/shape/round')
	myModule.copy_folder('../data/theme/color/black/*','theme/color/black')
	myModule.copy_folder('../data/theme/color/white/*','theme/color/white')
	myModule.copy_folder('../data/textured.*','')
	myModule.copy_folder('../data/texturedNoMaterial.*','')
	myModule.copy_folder('../data/text.*','')
	myModule.copy_folder('../data/simple3D.*','')
	myModule.copy_folder('../data/color.*','')
	myModule.copy_folder('../data/color3.*','')
	myModule.copy_folder('../data/textured3D2.*','')
	myModule.copy_folder('../data/textured3D.*','')
	myModule.copy_folder('../data/texturedDF.*','')
	myModule.copy_folder('../data/fontDistanceField/*','fontDistanceField')
	myModule.copy_folder('../data/translate/*','translate/ewol/')
	
	# name of the dependency
	myModule.add_module_depend(['etk', 'freetype', 'exml', 'ejson', 'egami', 'edtaa3', 'date'])
	
	myModule.add_export_path(tools.get_current_path(__file__))

	tagFile = tools.get_current_path(__file__) + "/tag"
	ewolVersionID = tools.file_read_data(tagFile)
	myModule.compile_flags_CC([
		"-DEWOL_VERSION=\"\\\""+ewolVersionID+"\\\"\""
		])
	
	if target.name=="Linux":
		myModule.add_export_flag_LD('-lGL')
		
		#`pkg-config --cflags directfb` `pkg-config --libs directfb`
		
		#ifeq ("$(CONFIG___EWOL_LINUX_GUI_MODE_X11__)","y")
		myModule.add_export_flag_LD('-lX11')
		#endif
		#ifeq ("$(CONFIG___EWOL_LINUX_GUI_MODE_DIRECT_FB__)","y")
		#myModule.add_export_flag_LD(['-L/usr/local/lib', '-ldirectfb', '-lfusion', '-ldirect'])
		#endif
		
		#http://en.wikibooks.org/wiki/OpenGL_Programming/Modern_OpenGL_Introduction
		# needed package on linux : libgl1-mesa-dev libglew1.5-dev
		
		#ifeq ("$(CONFIG_BUILD_PORTAUDIO)","y")
		#myModule.add_src_file('ewol/renderer/audio/interfacePortAudio.cpp')
		#endif
	
	elif target.name=="Android":
		myModule.add_export_flag_LD("-lGLESv2")
		
		myModule.add_export_flag_LD("-ldl")
		myModule.add_export_flag_LD("-llog")
		myModule.add_export_flag_LD("-landroid")
		java_tmp_dir = tools.get_current_path(__file__) + "/../../ewol/sources/android/src/"
		cpp_tmp_dir = tools.get_current_path(__file__) + "/ewol/renderer/Android/"
		java_tmp_src = java_tmp_dir + "org/ewol/EwolConstants"
		lutinMultiprocess.run_command("javac " + java_tmp_src + ".java")
		lutinMultiprocess.run_command("cd " + java_tmp_dir + " && javah org.ewol.EwolConstants")
		tools.copy_file(java_tmp_dir + "org_ewol_EwolConstants.h", cpp_tmp_dir + "org_ewol_EwolConstants.h", force=True)
		tools.remove_file(java_tmp_src + ".class")
	elif target.name=="Windows":
		myModule.add_module_depend("glew")
	elif target.name=="MacOs":
		myModule.add_export_flag_LD([
			"-framework Cocoa",
			"-framework OpenGL",
			"-framework QuartzCore",
			"-framework AppKit"])
	elif target.name=="IOs":
		myModule.add_export_flag_LD([
			"-framework OpenGLES",
			"-framework CoreGraphics",
			"-framework UIKit",
			"-framework GLKit",
			"-framework Foundation",
			"-framework QuartzCore"])

	# add the currrent module at the 
	return myModule