Rename filamentjs to filament-js to follow convention.
This commit is contained in:
@@ -290,7 +290,7 @@ endif()
|
||||
set (FILAMENT_SAMPLES_BINARY_DIR ${PROJECT_BINARY_DIR}/samples)
|
||||
|
||||
if (WEBGL)
|
||||
add_subdirectory(web/filamentjs)
|
||||
add_subdirectory(web/filament-js)
|
||||
add_subdirectory(web/samples)
|
||||
|
||||
add_subdirectory(${LIBRARIES}/filagui)
|
||||
|
||||
10
build.sh
10
build.sh
@@ -219,7 +219,7 @@ function build_webgl_with_target {
|
||||
${BUILD_COMMAND} ${BUILD_TARGETS}
|
||||
fi
|
||||
|
||||
if [ -d "web/filamentjs" ]; then
|
||||
if [ -d "web/filament-js" ]; then
|
||||
if [ "$ISSUE_ARCHIVES" == "true" ]; then
|
||||
|
||||
which -s python3
|
||||
@@ -237,10 +237,10 @@ function build_webgl_with_target {
|
||||
# dist...core WASM module and accompanying JS file.
|
||||
# docs...HTML tutorials for the JS API, accompanying demos, and a reference page.
|
||||
cd web
|
||||
tar -cvf ../../filament-${LC_TARGET}-web.tar -s /^filamentjs/dist/ \
|
||||
filamentjs/filament.js
|
||||
tar -rvf ../../filament-${LC_TARGET}-web.tar -s /^filamentjs/dist/ \
|
||||
filamentjs/filament.wasm
|
||||
tar -cvf ../../filament-${LC_TARGET}-web.tar -s /^filament-js/dist/ \
|
||||
filament-js/filament.js
|
||||
tar -rvf ../../filament-${LC_TARGET}-web.tar -s /^filament-js/dist/ \
|
||||
filament-js/filament.wasm
|
||||
tar -rvf ../../filament-${LC_TARGET}-web.tar docs
|
||||
cd -
|
||||
gzip -c ../filament-${LC_TARGET}-web.tar > ../filament-${LC_TARGET}-web.tgz
|
||||
|
||||
@@ -6,7 +6,7 @@ chmod +x ninja
|
||||
export PATH="$PWD:$PATH"
|
||||
|
||||
# The Kokoro machines have Python 3.6.3 installed. Let's verify that here, and install the
|
||||
# distributions required for libs/filamentjs/docs.
|
||||
# distributions required for web/docs.
|
||||
python3 --version
|
||||
pip3 install mistletoe pygments jsbeautifier
|
||||
|
||||
|
||||
@@ -442,11 +442,11 @@ def build_reference_markdown(doctree):
|
||||
|
||||
def build_reference():
|
||||
doctree = gather_docstrings([
|
||||
ROOT_DIR + 'web/filamentjs/jsbindings.cpp',
|
||||
ROOT_DIR + 'web/filamentjs/jsenums.cpp',
|
||||
ROOT_DIR + 'web/filamentjs/utilities.js',
|
||||
ROOT_DIR + 'web/filamentjs/wasmloader.js',
|
||||
ROOT_DIR + 'web/filamentjs/extensions.js',
|
||||
ROOT_DIR + 'web/filament-js/jsbindings.cpp',
|
||||
ROOT_DIR + 'web/filament-js/jsenums.cpp',
|
||||
ROOT_DIR + 'web/filament-js/utilities.js',
|
||||
ROOT_DIR + 'web/filament-js/wasmloader.js',
|
||||
ROOT_DIR + 'web/filament-js/extensions.js',
|
||||
])
|
||||
markdown = build_reference_markdown(doctree)
|
||||
rendered = mistletoe.markdown(markdown, PygmentsRenderer)
|
||||
@@ -489,8 +489,8 @@ if __name__ == "__main__":
|
||||
|
||||
copy_src_file(ROOT_DIR + 'web/docs/main.css')
|
||||
copy_src_file(ROOT_DIR + 'third_party/gl-matrix/gl-matrix-min.js')
|
||||
copy_built_file('web/filamentjs/filament.js')
|
||||
copy_built_file('web/filamentjs/filament.wasm')
|
||||
copy_built_file('web/filament-js/filament.js')
|
||||
copy_built_file('web/filament-js/filament.wasm')
|
||||
copy_built_file('web/samples/pillars_2k/pillars_2k_skybox.ktx')
|
||||
copy_built_file('web/samples/pillars_2k/pillars_2k_ibl.ktx')
|
||||
build_filamat('triangle')
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
cmake_minimum_required(VERSION 3.1)
|
||||
|
||||
project(filamentjs)
|
||||
project(filament-js)
|
||||
|
||||
set(JAVASCRIPT_SRC
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/wasmloader.js
|
||||
@@ -31,10 +31,10 @@ endforeach()
|
||||
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${LOPTS}")
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${COPTS}")
|
||||
|
||||
add_executable(filamentjs ${CPP_SRC})
|
||||
add_executable(filament-js ${CPP_SRC})
|
||||
|
||||
set_target_properties(filamentjs PROPERTIES
|
||||
set_target_properties(filament-js PROPERTIES
|
||||
LINK_DEPENDS "${JAVASCRIPT_SRC}"
|
||||
OUTPUT_NAME filament)
|
||||
|
||||
target_link_libraries(filamentjs PRIVATE filament math utils image filameshio stb)
|
||||
target_link_libraries(filament-js PRIVATE filament math utils image filameshio stb)
|
||||
@@ -18,8 +18,8 @@
|
||||
* JS BINDINGS DESIGN
|
||||
* ------------------
|
||||
*
|
||||
* The purpose of the filamentjs library is to offer a first-class JavaScript interface to the core
|
||||
* Filament classes: Engine, Renderer, Texture, etc.
|
||||
* The purpose of filament-js is to offer a first-class JavaScript interface to the core Filament
|
||||
* classes: Engine, Renderer, Texture, etc.
|
||||
*
|
||||
* Emscripten offers two ways to binding JavaScript to C++: embind and WebIDL. We chose embind.
|
||||
*
|
||||
@@ -142,13 +142,13 @@ add_custom_target(sample_assets DEPENDS
|
||||
|
||||
add_custom_command(
|
||||
OUTPUT ${SERVER_DIR}/filament.js
|
||||
DEPENDS filamentjs
|
||||
COMMAND cmake -E copy ${PROJECT_BINARY_DIR}/../filamentjs/filament.js ${SERVER_DIR})
|
||||
DEPENDS filament-js
|
||||
COMMAND cmake -E copy ${PROJECT_BINARY_DIR}/../filament-js/filament.js ${SERVER_DIR})
|
||||
|
||||
add_custom_command(
|
||||
OUTPUT ${SERVER_DIR}/filament.wasm
|
||||
DEPENDS filamentjs
|
||||
COMMAND cmake -E copy ${PROJECT_BINARY_DIR}/../filamentjs/filament.wasm ${SERVER_DIR})
|
||||
DEPENDS filament-js
|
||||
COMMAND cmake -E copy ${PROJECT_BINARY_DIR}/../filament-js/filament.wasm ${SERVER_DIR})
|
||||
|
||||
add_custom_target(filamentjs_public DEPENDS ${SERVER_DIR}/filament.js ${SERVER_DIR}/filament.wasm)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user