2013-04-04 09:26:55 +08:00
|
|
|
TARGET = libextension.a
|
|
|
|
|
|
|
|
COCOS_ROOT=../..
|
|
|
|
|
|
|
|
INCLUDES = -I$(COCOS_ROOT)/external \
|
|
|
|
-I$(COCOS_ROOT)/external/chipmunk/include/chipmunk \
|
|
|
|
-I$(COCOS_ROOT)/CocosDenshion/include \
|
|
|
|
-I.. \
|
|
|
|
-I../CCBReader \
|
|
|
|
-I../GUI/CCControlExtension \
|
2013-06-10 20:52:56 +08:00
|
|
|
-I../network \
|
2013-05-24 13:55:05 +08:00
|
|
|
-I../GUI/CCEditBox \
|
2013-06-07 10:52:32 +08:00
|
|
|
-I../Components \
|
2013-06-10 20:52:56 +08:00
|
|
|
-I../CCArmature
|
|
|
|
|
2013-04-04 09:26:55 +08:00
|
|
|
DEFINES += -DCC_ENABLE_CHIPMUNK_INTEGRATION=1
|
|
|
|
DEFINES += -D__CC_PLATFORM_IMAGE_CPP__
|
|
|
|
|
|
|
|
SOURCES = ../CCBReader/CCBFileLoader.cpp \
|
|
|
|
../CCBReader/CCMenuItemImageLoader.cpp \
|
|
|
|
../CCBReader/CCBReader.cpp \
|
|
|
|
../CCBReader/CCMenuItemLoader.cpp \
|
|
|
|
../CCBReader/CCControlButtonLoader.cpp \
|
|
|
|
../CCBReader/CCNodeLoader.cpp \
|
|
|
|
../CCBReader/CCControlLoader.cpp \
|
|
|
|
../CCBReader/CCNodeLoaderLibrary.cpp \
|
|
|
|
../CCBReader/CCLabelBMFontLoader.cpp \
|
|
|
|
../CCBReader/CCParticleSystemQuadLoader.cpp \
|
|
|
|
../CCBReader/CCLabelTTFLoader.cpp \
|
|
|
|
../CCBReader/CCScale9SpriteLoader.cpp \
|
|
|
|
../CCBReader/CCLayerColorLoader.cpp \
|
|
|
|
../CCBReader/CCScrollViewLoader.cpp \
|
|
|
|
../CCBReader/CCLayerGradientLoader.cpp \
|
|
|
|
../CCBReader/CCSpriteLoader.cpp \
|
|
|
|
../CCBReader/CCLayerLoader.cpp \
|
|
|
|
../CCBReader/CCBAnimationManager.cpp \
|
|
|
|
../CCBReader/CCBKeyframe.cpp \
|
|
|
|
../CCBReader/CCBSequence.cpp \
|
|
|
|
../CCBReader/CCBSequenceProperty.cpp \
|
|
|
|
../CCBReader/CCBValue.cpp \
|
|
|
|
../CCBReader/CCData.cpp \
|
|
|
|
../CCBReader/CCNode+CCBRelativePositioning.cpp \
|
|
|
|
../GUI/CCScrollView/CCScrollView.cpp \
|
|
|
|
../GUI/CCScrollView/CCSorting.cpp \
|
|
|
|
../GUI/CCScrollView/CCTableView.cpp \
|
|
|
|
../GUI/CCScrollView/CCTableViewCell.cpp \
|
|
|
|
../GUI/CCControlExtension/CCControlButton.cpp \
|
|
|
|
../GUI/CCControlExtension/CCControlColourPicker.cpp \
|
|
|
|
../GUI/CCControlExtension/CCControl.cpp \
|
|
|
|
../GUI/CCControlExtension/CCControlHuePicker.cpp \
|
|
|
|
../GUI/CCControlExtension/CCControlSaturationBrightnessPicker.cpp \
|
|
|
|
../GUI/CCControlExtension/CCControlSlider.cpp \
|
|
|
|
../GUI/CCControlExtension/CCControlSwitch.cpp \
|
|
|
|
../GUI/CCControlExtension/CCControlUtils.cpp \
|
|
|
|
../GUI/CCControlExtension/CCInvocation.cpp \
|
|
|
|
../GUI/CCControlExtension/CCScale9Sprite.cpp \
|
|
|
|
../GUI/CCControlExtension/CCControlPotentiometer.cpp \
|
|
|
|
../GUI/CCControlExtension/CCControlStepper.cpp \
|
2013-05-24 11:42:27 +08:00
|
|
|
../GUI/CCEditBox/CCEditBox.cpp \
|
|
|
|
../GUI/CCEditBox/CCEditBoxImplNone.cpp \
|
2013-04-04 09:26:55 +08:00
|
|
|
../physics_nodes/CCPhysicsDebugNode.cpp \
|
2013-06-04 17:38:43 +08:00
|
|
|
../physics_nodes/CCPhysicsSprite.cpp \
|
|
|
|
../Components/CCComAttribute.cpp \
|
|
|
|
../Components/CCComAudio.cpp \
|
|
|
|
../Components/CCComController.cpp \
|
2013-06-07 10:52:32 +08:00
|
|
|
../Components/CCInputDelegate.cpp \
|
|
|
|
../CCArmature/CCArmature.cpp \
|
|
|
|
../CCArmature/CCBone.cpp \
|
2013-06-08 11:16:17 +08:00
|
|
|
../CCArmature/animation/CCArmatureAnimation.cpp \
|
2013-06-07 10:52:32 +08:00
|
|
|
../CCArmature/animation/CCProcessBase.cpp \
|
|
|
|
../CCArmature/animation/CCTween.cpp \
|
|
|
|
../CCArmature/datas/CCDatas.cpp \
|
|
|
|
../CCArmature/display/CCBatchNode.cpp \
|
|
|
|
../CCArmature/display/CCDecorativeDisplay.cpp \
|
|
|
|
../CCArmature/display/CCDisplayFactory.cpp \
|
|
|
|
../CCArmature/display/CCDisplayManager.cpp \
|
|
|
|
../CCArmature/display/CCShaderNode.cpp \
|
|
|
|
../CCArmature/display/CCSkin.cpp \
|
|
|
|
../CCArmature/external_tool/GLES-Render.cpp \
|
|
|
|
../CCArmature/external_tool/Json/CSContentJsonDictionary.cpp \
|
|
|
|
../CCArmature/external_tool/Json/lib_json/json_value.cpp \
|
|
|
|
../CCArmature/external_tool/Json/lib_json/json_reader.cpp \
|
|
|
|
../CCArmature/external_tool/Json/lib_json/json_writer.cpp \
|
|
|
|
../CCArmature/physics/CCColliderDetector.cpp \
|
|
|
|
../CCArmature/physics/CCPhysicsWorld.cpp \
|
|
|
|
../CCArmature/utils/CCArmatureDataManager.cpp \
|
|
|
|
../CCArmature/utils/CCDataReaderHelper.cpp \
|
|
|
|
../CCArmature/utils/CCSpriteFrameCacheHelper.cpp \
|
|
|
|
../CCArmature/utils/CCTransformHelp.cpp \
|
|
|
|
../CCArmature/utils/CCTweenFunction.cpp \
|
2013-06-10 20:52:56 +08:00
|
|
|
../CCArmature/utils/CCUtilMath.cpp
|
2013-04-04 09:26:55 +08:00
|
|
|
|
|
|
|
include $(COCOS_ROOT)/cocos2dx/proj.emscripten/cocos2dx.mk
|
|
|
|
|
|
|
|
CXXFLAGS += -Wno-multichar
|
|
|
|
|
|
|
|
TARGET := $(LIB_DIR)/$(TARGET)
|
|
|
|
|
|
|
|
all: $(TARGET)
|
|
|
|
|
|
|
|
$(TARGET): $(OBJECTS) $(CORE_MAKEFILE_LIST)
|
|
|
|
@mkdir -p $(@D)
|
2013-04-24 05:43:59 +08:00
|
|
|
$(AR) $(ARFLAGS) $@ $(OBJECTS)
|
2013-04-04 09:26:55 +08:00
|
|
|
|
|
|
|
$(OBJ_DIR)/%.o: ../%.cpp $(CORE_MAKEFILE_LIST)
|
|
|
|
@mkdir -p $(@D)
|
2013-04-24 05:43:59 +08:00
|
|
|
$(CXX) $(CXXFLAGS) $(INCLUDES) $(DEFINES) -c $< -o $@
|
2013-04-04 09:26:55 +08:00
|
|
|
|
|
|
|
$(OBJ_DIR)/%.o: ../%.c $(CORE_MAKEFILE_LIST)
|
|
|
|
@mkdir -p $(@D)
|
2013-04-24 05:43:59 +08:00
|
|
|
$(CC) $(CCFLAGS) $(INCLUDES) $(DEFINES) -c $< -o $@
|