-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
85 changed files
with
125 additions
and
4,371 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -81,8 +81,9 @@ | |
# explicit exclusions | ||
/.env | ||
node_modules/ | ||
obj/ | ||
target/ | ||
obj/ | ||
cmake-build*/ | ||
*.tgz | ||
*.wasm | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,28 @@ | ||
cmake_minimum_required(VERSION 3.19) | ||
|
||
project(flybywire-a32nx) | ||
set(FBW_ROOT ${CMAKE_SOURCE_DIR}) | ||
|
||
add_subdirectory(src/fadec) | ||
add_subdirectory(src/fbw_a320) | ||
add_subdirectory(src/fbw_a380) | ||
add_subdirectory(src/extra-backend) | ||
# Distinction between running on Windows for your IDE and Other for the docker container | ||
# This is not meant to be used to build on windows - it is just for the IDE (Clion) to understand the code | ||
if (WIN32) | ||
message("OS: Windows") | ||
set(MSFS_SDK "C:\\MSFS SDK") | ||
set(CMAKE_C_COMPILER "C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/Llvm/x64/bin/clang.exe") | ||
set(CMAKE_CXX_COMPILER "C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/Llvm/x64/bin/clang++.exe") | ||
set(CMAKE_GENERATOR "Ninja") | ||
else () | ||
message("OS: Other") | ||
set(MSFS_SDK "/workdir/MSFS_SDK") | ||
set(CMAKE_C_COMPILER "clang") | ||
set(CMAKE_CXX_COMPILER "clang++") | ||
set(CMAKE_GENERATOR "Ninja") | ||
endif () | ||
|
||
project(flybywire-wasm) | ||
|
||
add_subdirectory(fbw-a32nx/src/wasm/fadec_a320) | ||
add_subdirectory(fbw-a380x/src/wasm/fadec_a380) | ||
add_subdirectory(fbw-a32nx/src/wasm/fbw_a320) | ||
add_subdirectory(fbw-a380x/src/wasm/fbw_a380) | ||
|
||
add_subdirectory(fbw-a32nx/src/wasm/extra-backend) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,76 +1,81 @@ | ||
# This CMakeLists.txt file is used only for syntax highlighting and navigating | ||
# through the code in an IDE. It is not used for building the project. | ||
|
||
cmake_minimum_required(VERSION 3.19) | ||
|
||
project(flybywire-a32nx-fbw) | ||
|
||
set(CMAKE_CXX_STANDARD 17) | ||
set(MSFS_SDK "C:\\MSFS SDK") | ||
|
||
set(CMAKE_CXX_FLAGS "-c -g -DDEBUG -Wno-unused-command-line-argument -Wno-ignored-attributes -Wno-macro-redefined --sysroot \"${MSFS_SDK}/WASM/wasi-sysroot\" -target wasm32-unknown-wasi -flto -D_MSFS_WASM=1 -D__wasi__ -D_LIBCPP_HAS_NO_THREADS -D_WINDLL -D_MBCS -mthread-model single -fno-exceptions -fms-extensions") | ||
|
||
include_directories("${MSFS_SDK}/WASM/include") | ||
include_directories("${MSFS_SDK}/WASM/wasi-sysroot/include") | ||
include_directories("${MSFS_SDK}/SimConnect SDK/include") | ||
|
||
include_directories(src) | ||
include_directories(src/inih) | ||
include_directories(src/busStructures) | ||
include_directories(src/elac) | ||
include_directories(src/fac) | ||
include_directories(src/failures) | ||
include_directories(src/fcdc) | ||
include_directories(src/interface) | ||
include_directories(src/model) | ||
include_directories(src/sec) | ||
include_directories(src/utils) | ||
include_directories(../fbw_common/src/inih) | ||
include_directories(../fbw_common/src/zlib) | ||
include_directories(../fbw_common/src) | ||
|
||
add_executable(flybywire-a380x-fbw | ||
../fbw_common/src/zlib/zfstream.cc | ||
../fbw_common/src/LocalVariable.cpp | ||
../fbw_common/src/ThrottleAxisMapping.cpp | ||
../fbw_common/src/InterpolatingLookupTable.cpp | ||
src/interface/SimConnectInterface.cpp | ||
# src/elac/Elac.cpp | ||
src/sec/Sec.cpp | ||
# src/fcdc/Fcdc.cpp | ||
src/fac/Fac.cpp | ||
src/failures/FailuresConsumer.cpp | ||
src/utils/ConfirmNode.cpp | ||
src/utils/SRFlipFLop.cpp | ||
src/utils/PulseNode.cpp | ||
src/utils/HysteresisNode.cpp | ||
src/model/AutopilotLaws_data.cpp | ||
src/model/AutopilotLaws.cpp | ||
src/model/AutopilotStateMachine_data.cpp | ||
src/model/AutopilotStateMachine.cpp | ||
src/model/Autothrust_data.cpp | ||
src/model/Autothrust.cpp | ||
src/model/Double2MultiWord.cpp | ||
# src/model/ElacComputer_data.cpp | ||
# src/model/ElacComputer.cpp | ||
# src/model/SecComputer_data.cpp | ||
# src/model/SecComputer.cpp | ||
# src/model/PitchNormalLaw.cpp | ||
# src/model/PitchAlternateLaw.cpp | ||
# src/model/PitchDirectLaw.cpp | ||
# src/model/LateralNormalLaw.cpp | ||
# src/model/LateralDirectLaw.cpp | ||
src/model/FacComputer_data.cpp | ||
src/model/FacComputer.cpp | ||
src/model/look1_binlxpw.cpp | ||
src/model/look2_binlcpw.cpp | ||
src/model/look2_binlxpw.cpp | ||
src/model/mod_mvZvttxs.cpp | ||
src/model/MultiWordIor.cpp | ||
src/model/rt_modd.cpp | ||
src/model/rt_remd.cpp | ||
src/model/uMultiWord2Double.cpp | ||
src/FlyByWireInterface.cpp | ||
src/FlightDataRecorder.cpp | ||
../fbw_a320/src/Arinc429.cpp | ||
src/Arinc429Utils.cpp | ||
src/SpoilersHandler.cpp | ||
src/CalculatedRadioReceiver.cpp | ||
src/main.cpp | ||
include_directories( | ||
./src | ||
./src/inih | ||
./src/busStructures | ||
./src/elac | ||
./src/fac | ||
./src/failures | ||
./src/fcdc | ||
./src/interface | ||
./src/model | ||
./src/sec | ||
./src/utils | ||
${FBW_ROOT}/fbw-common/src/wasm/fadec_common/src/zlib | ||
${FBW_ROOT}/fbw-common/src/wasm/fbw_common/src/inih | ||
${FBW_ROOT}/fbw-common/src/wasm/fbw-common/src | ||
) | ||
|
||
add_executable(flybywire-a32nx-fbw | ||
${FBW_ROOT}/fbw-common/src/wasm/fbw_common/src/zlib/zfstream.cc | ||
${FBW_ROOT}/fbw-common/src/wasm/fbw_common/src/LocalVariable.cpp | ||
${FBW_ROOT}/fbw-common/src/wasm/fbw_common/src/ThrottleAxisMapping.cpp | ||
${FBW_ROOT}/fbw-common/src/wasm/fbw_common/src/InterpolatingLookupTable.cpp | ||
src/interface/SimConnectInterface.cpp | ||
src/elac/Elac.cpp | ||
src/sec/Sec.cpp | ||
src/fcdc/Fcdc.cpp | ||
src/fac/Fac.cpp | ||
src/failures/FailuresConsumer.cpp | ||
src/utils/ConfirmNode.cpp | ||
src/utils/SRFlipFLop.cpp | ||
src/utils/PulseNode.cpp | ||
src/utils/HysteresisNode.cpp | ||
src/model/AutopilotLaws_data.cpp | ||
src/model/AutopilotLaws.cpp | ||
src/model/AutopilotStateMachine_data.cpp | ||
src/model/AutopilotStateMachine.cpp | ||
src/model/Autothrust_data.cpp | ||
src/model/Autothrust.cpp | ||
src/model/Double2MultiWord.cpp | ||
src/model/ElacComputer_data.cpp | ||
src/model/ElacComputer.cpp | ||
src/model/SecComputer_data.cpp | ||
src/model/SecComputer.cpp | ||
src/model/PitchNormalLaw.cpp | ||
src/model/PitchAlternateLaw.cpp | ||
src/model/PitchDirectLaw.cpp | ||
src/model/LateralNormalLaw.cpp | ||
src/model/LateralDirectLaw.cpp | ||
src/model/FacComputer_data.cpp | ||
src/model/FacComputer.cpp | ||
src/model/look1_binlxpw.cpp | ||
src/model/look2_binlcpw.cpp | ||
src/model/look2_binlxpw.cpp | ||
src/model/mod_mvZvttxs.cpp | ||
src/model/MultiWordIor.cpp | ||
src/model/rt_modd.cpp | ||
src/model/rt_remd.cpp | ||
src/model/uMultiWord2Double.cpp | ||
src/FlyByWireInterface.cpp | ||
src/FlightDataRecorder.cpp | ||
src/Arinc429.cpp | ||
src/Arinc429Utils.cpp | ||
src/SpoilersHandler.cpp | ||
src/CalculatedRadioReceiver.cpp | ||
src/main.cpp | ||
) |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.