Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Libretro
melonDS
Commits
5d135385
Commit
5d135385
authored
Apr 02, 2017
by
s1nka
Browse files
add CMake build system
parent
3a61ed0a
Changes
4
Hide whitespace changes
Inline
Side-by-side
.gitignore
View file @
5d135385
...
...
@@ -2,3 +2,4 @@ bin
obj
*.depend
*.layout
src/version.h
\ No newline at end of file
CMakeLists.txt
0 → 100644
View file @
5d135385
cmake_minimum_required
(
VERSION 2.8.11
)
SET
(
PROJECT_WX melonDS
)
PROJECT
(
${
PROJECT_WX
}
)
SET
(
APP_VERSION 0.1
)
SET
(
INSTALL_PATH /usr/local/bin/
)
SET
(
VERSION
${
APP_VERSION
}
)
CONFIGURE_FILE
(
${
CMAKE_CURRENT_SOURCE_DIR
}
/src/version.h.cmake
${
CMAKE_CURRENT_SOURCE_DIR
}
/src/version.h
)
SET
(
SOURCES
src/wx/main.cpp
src/wx/EmuConfig.cpp
src/wx/InputConfig.cpp
src/ARM.cpp
src/ARMInterpreter.cpp
src/ARMInterpreter_ALU.cpp
src/ARMInterpreter_Branch.cpp
src/ARMInterpreter_LoadStore.cpp
src/Config.cpp
src/CP15.cpp
src/DMA.cpp
src/GPU.cpp
src/GPU2D.cpp
src/GPU3D.cpp
src/GPU3D_Soft.cpp
src/NDS.cpp
src/NDSCart.cpp
src/RTC.cpp
src/SPI.cpp
src/Wifi.cpp
)
find_package
(
GTK2 2.0 REQUIRED
)
include_directories
(
${
GTK2_INCLUDE_DIRS
}
)
find_package
(
wxWidgets REQUIRED
)
include
(
${
wxWidgets_USE_FILE
}
)
link_libraries
(
${
wxWidgets_LIBRARIES
}
)
find_package
(
SDL2 REQUIRED
)
include_directories
(
${
SDL2_INCLUDE_DIR
}
)
link_libraries
(
${
SDL2_LIBRARIES
}
)
add_executable
(
${
PROJECT_WX
}
${
SOURCES
}
)
target_link_libraries
(
${
PROJECT_WX
}
)
install
(
TARGETS
${
PROJECT_WX
}
DESTINATION
${
INSTALL_PATH
}
)
\ No newline at end of file
README.md
View file @
5d135385
...
...
@@ -19,7 +19,16 @@ Note: the DS-mode firmware in the 3DS isn't bootable, it only contains the bare
As for the rest, the interface should be pretty straightforward. If you have a question, don't hesitate to ask, though!
How to build:
Linux:
*
mkdir -p build
*
cd build
*
cmake ..
*
make
Windows:
*
use CodeBlocks
TODO LIST
...
...
src/version.h
→
src/version.h
.cmake
View file @
5d135385
...
...
@@ -19,7 +19,7 @@
#ifndef VERSION_H
#define VERSION_H
#define MELONDS_VERSION "
0.1
"
#define MELONDS_VERSION "
@VERSION@
"
#define MELONDS_URL "http://melonds.kuribo64.net/"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment