Migrate to buildtools.

This commit is contained in:
Steven Smith 2016-01-26 20:43:15 -08:00
parent 47bf2830d8
commit b7ff175dba
6 changed files with 59 additions and 10 deletions

3
.gitignore vendored
View file

@ -1,2 +1,5 @@
.idea .idea
CMakeLists.txt
build build
output

3
.gitmodules vendored Normal file
View file

@ -0,0 +1,3 @@
[submodule "buildtools"]
path = buildtools
url = git://github.com/Steveice10/buildtools

View file

@ -1,7 +0,0 @@
cmake_minimum_required(VERSION 2.8.4)
project(bannertool)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
set(SOURCE_FILES source/main.cpp source/cmd.cpp source/pc/wav.cpp source/3ds/cbmd.cpp source/3ds/cwav.cpp source/3ds/lz11.cpp source/3ds/util.cpp source/pc/lodepng.cpp)
add_executable(bannertool ${SOURCE_FILES})

50
Makefile Normal file
View file

@ -0,0 +1,50 @@
# TARGET #
TARGET := PC
LIBRARY := 0
ifeq ($(TARGET),3DS)
ifeq ($(strip $(DEVKITPRO)),)
$(error "Please set DEVKITPRO in your environment. export DEVKITPRO=<path to>devkitPro")
endif
ifeq ($(strip $(DEVKITARM)),)
$(error "Please set DEVKITARM in your environment. export DEVKITARM=<path to>devkitARM")
endif
endif
# COMMON CONFIGURATION #
NAME := bannertool
BUILD_DIR := build
OUTPUT_DIR := output
INCLUDE_DIRS := include
SOURCE_DIRS := source
EXTRA_OUTPUT_FILES :=
LIBRARY_DIRS :=
LIBRARIES :=
BUILD_FLAGS := -Wno-unused-result -Wno-sign-compare
RUN_FLAGS :=
# 3DS CONFIGURATION #
DESCRIPTION :=
AUTHOR :=
PRODUCT_CODE :=
UNIQUE_ID :=
SYSTEM_MODE :=
SYSTEM_MODE_EXT :=
ROMFS_DIR :=
BANNER_AUDIO :=
BANNER_IMAGE :=
ICON :=
# INTERNAL #
include buildtools/make_base

View file

@ -1,4 +1,3 @@
<b><center>bannertool</center></b> # bannertool
==========
A tool for creating 3DS banners. A tool for creating 3DS banners.

1
buildtools Submodule

@ -0,0 +1 @@
Subproject commit 2b464d8e90ba23ae6233e517eb7ec22fb797f880