Skip to content

Android Axmol from Cocos2d-x project - Not copying shaders #1701

Closed Answered by rh101
IcemarkUK asked this question in Q&A
Discussion options

You must be logged in to vote

The problem is in axmol/cmake/Modules/AXBuildSet.cmake:

# configure android GLSLCC compile output, this is the first include cmake module
if (ANDROID)
    file(TO_NATIVE_PATH "${PROJECT_SOURCE_DIR}/proj.android/app/build/runtime/axslc" _GLSLCC_OUT_DIR)
    set(GLSLCC_OUT_DIR "${_GLSLCC_OUT_DIR}" CACHE STRING "" FORCE)
    message(AUTHOR_WARNING "Set GLSLCC_OUT_DIR to ${GLSLCC_OUT_DIR} for android")
endif()

The project path is hard-coded in there to proj.android. It is probably best not to hard-code project-side paths in the engine scripts, since the engine has no control over them.

@halx99 Can this be changed so that the game project is in full control of what paths it uses, and make it …

Replies: 6 comments 8 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@halx99
Comment options

@IcemarkUK
Comment options

@rh101
Comment options

@IcemarkUK
Comment options

Answer selected by IcemarkUK
Comment options

You must be logged in to vote
1 reply
@IcemarkUK
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@rh101
Comment options

@halx99
Comment options

@halx99
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants