Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
WLHQ authored Apr 26, 2024
1 parent ea4cd9c commit 6f8e6f3
Show file tree
Hide file tree
Showing 36 changed files with 2,258 additions and 38 deletions.
148 changes: 148 additions & 0 deletions 3ds.cbp
Original file line number Diff line number Diff line change
@@ -0,0 +1,148 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<CodeBlocks_project_file>
<FileVersion major="1" minor="6" />
<Project>
<Option title="3DS" />
<Option makefile_is_custom="1" />
<Option pch_mode="2" />
<Option compiler="gcc" />
<Build>
<Target title="release">
<Option type="4" />
<Option compiler="gcc" />
<MakeCommands>
<Build command="$make -f $makefile" />
<CompileFile command="$make -f $makefile source/$file" />
<Clean command="$make -f $makefile clean" />
<DistClean command="$make -f $makefile distclean$target" />
<AskRebuildNeeded command="$make -q -f $makefile $target" />
<SilentBuild command="$make -f $makefile &gt; $(CMD_NULL)" />
</MakeCommands>
</Target>
<Target title="3dsx">
<Option type="4" />
<Option compiler="gcc" />
<Compiler>
<Add option="-O2" />
</Compiler>
<Linker>
<Add option="-s" />
</Linker>
<MakeCommands>
<Build command="$make -f $makefile $target" />
<CompileFile command="$make -f $makefile source/$file" />
<Clean command="$make -f $makefile clean" />
<DistClean command="$make -f $makefile distclean$target" />
<AskRebuildNeeded command="$make -q -f $makefile $target" />
<SilentBuild command="$make -f $makefile $target &gt; $(CMD_NULL)" />
</MakeCommands>
</Target>
<Target title="cia">
<Option type="4" />
<Option compiler="gcc" />
<MakeCommands>
<Build command="$make -f $makefile $target" />
<CompileFile command="$make -f $makefile source/$file" />
<Clean command="$make -f $makefile clean" />
<DistClean command="$make -f $makefile distclean$target" />
<AskRebuildNeeded command="$make -q -f $makefile $target" />
<SilentBuild command="$make -f $makefile $target &gt; $(CMD_NULL)" />
</MakeCommands>
</Target>
<Target title="3ds">
<Option type="4" />
<Option compiler="gcc" />
<MakeCommands>
<Build command="$make -f $makefile $target" />
<CompileFile command="$make -f $makefile source/$file" />
<Clean command="$make -f $makefile clean" />
<DistClean command="$make -f $makefile distclean$target" />
<AskRebuildNeeded command="$make -q -f $makefile $target" />
<SilentBuild command="$make -f $makefile $target &gt; $(CMD_NULL)" />
</MakeCommands>
</Target>
<Target title="elf">
<Option type="4" />
<Option compiler="gcc" />
<MakeCommands>
<Build command="$make -f $makefile $target" />
<CompileFile command="$make -f $makefile source/$file" />
<Clean command="$make -f $makefile clean" />
<DistClean command="$make -f $makefile distclean$target" />
<AskRebuildNeeded command="$make -q -f $makefile $target" />
<SilentBuild command="$make -f $makefile $target &gt; $(CMD_NULL)" />
</MakeCommands>
</Target>
<Target title="citra">
<Option type="4" />
<Option compiler="gcc" />
<MakeCommands>
<Build command="$make -f $makefile $target" />
<CompileFile command="$make -f $makefile source/$file" />
<Clean command="$make -f $makefile clean" />
<DistClean command="$make -f $makefile distclean$target" />
<AskRebuildNeeded command="$make -q -f $makefile $target" />
<SilentBuild command="$make -f $makefile $target &gt; $(CMD_NULL)" />
</MakeCommands>
</Target>
<Target title="3dsxlink">
<Option type="4" />
<Option compiler="gcc" />
<Compiler>
<Add option="-O2" />
</Compiler>
<Linker>
<Add option="-s" />
</Linker>
<MakeCommands>
<Build command="$make -f $makefile $target" />
<CompileFile command="$make -f $makefile source/$file" />
<Clean command="$make -f $makefile clean" />
<DistClean command="$make -f $makefile distclean$target" />
<AskRebuildNeeded command="$make -q -f $makefile $target" />
<SilentBuild command="$make -f $makefile $target &gt; $(CMD_NULL)" />
</MakeCommands>
</Target>
<Target title="spunch">
<Option type="4" />
<Option compiler="gcc" />
<Compiler>
<Add option="-O2" />
</Compiler>
<Linker>
<Add option="-s" />
</Linker>
<MakeCommands>
<Build command="$make -f $makefile $target" />
<CompileFile command="$make -f $makefile source/$file" />
<Clean command="$make -f $makefile clean" />
<DistClean command="$make -f $makefile distclean$target" />
<AskRebuildNeeded command="$make -q -f $makefile $target" />
<SilentBuild command="$make -f $makefile $target &gt; $(CMD_NULL)" />
</MakeCommands>
</Target>
</Build>
<Compiler>
<Add option="-Wall" />
</Compiler>
<Unit filename="Makefile">
<Option target="3dsx" />
<Option target="citra" />
<Option target="3dsxlink" />
<Option target="spunch" />
</Unit>
<Unit filename="resources/AppInfo" />
<Unit filename="source/main.cpp">
<Option target="3dsx" />
<Option target="citra" />
<Option target="3dsxlink" />
<Option target="spunch" />
</Unit>
<Extensions>
<code_completion />
<envvars />
<lib_finder disable_auto="1" />
<debugger />
</Extensions>
</Project>
</CodeBlocks_project_file>
18 changes: 18 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
cmake_minimum_required(VERSION 3.7)
project(3DSBuildTemplate)

set(CMAKE_CXX_STANDARD 11)

set(SOURCE_FILES
source/main.h
source/main.cpp
source/graphics/Output.h
source/graphics/Output.cpp)

# Specify external includes here
include_directories($ENV{DEVKITARM}/include/)
include_directories($ENV{DEVKITARM}/arm-none-eabi/include)
include_directories($ENV{DEVKITPRO}/libctru/include)
include_directories($ENV{DEVKITARM}/arm-none-eabi/include/c++/7.1.0)

add_executable(3DSBuildTemplate ${SOURCE_FILES})
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2024 WLHQ
Copyright (c) 2017 [Your Name]

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
Loading

0 comments on commit 6f8e6f3

Please sign in to comment.