Create Macros for PAL/NTSC
This commit is contained in:
parent
63df4e8ad8
commit
8a117a0670
|
@ -2,6 +2,14 @@
|
||||||
#define __JABYENGINE_GPU_HPP__
|
#define __JABYENGINE_GPU_HPP__
|
||||||
#include "../System/IOPorts/GPU_IO.hpp"
|
#include "../System/IOPorts/GPU_IO.hpp"
|
||||||
|
|
||||||
|
#if !defined(JABYENGINE_NTSC) && !defined(JABYENGINE_PAL)
|
||||||
|
#error "JABYENGINE_NTSC or JABYENGINE_PAL must be defined"
|
||||||
|
#else
|
||||||
|
#if defined(JABYENGINE_NTSC) && defined(JABYENGINE_PAL)
|
||||||
|
#error "Please define only JABYENGINE_NTSC or JABYENGINE_PAL"
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
namespace GPU {
|
namespace GPU {
|
||||||
namespace Display {
|
namespace Display {
|
||||||
static void enable() {
|
static void enable() {
|
||||||
|
|
|
@ -7,6 +7,7 @@ PLATFORM ?= PSX
|
||||||
#Build profile, possible values: release, debug, profile, coverage
|
#Build profile, possible values: release, debug, profile, coverage
|
||||||
BUILD_DIR ?= bin
|
BUILD_DIR ?= bin
|
||||||
BUILD_PROFILE ?= debug
|
BUILD_PROFILE ?= debug
|
||||||
|
TV_FORMAT ?= PAL
|
||||||
|
|
||||||
CONFIG_NAME ?= $(PLATFORM)-$(BUILD_PROFILE)
|
CONFIG_NAME ?= $(PLATFORM)-$(BUILD_PROFILE)
|
||||||
OUTPUT_DIR = $(BUILD_DIR)/$(CONFIG_NAME)
|
OUTPUT_DIR = $(BUILD_DIR)/$(CONFIG_NAME)
|
||||||
|
@ -56,6 +57,8 @@ CCFLAGS += $(ARCHFLAGS)
|
||||||
|
|
||||||
CCFLAGS += $(CCFLAGS_$(BUILD_PROFILE))
|
CCFLAGS += $(CCFLAGS_$(BUILD_PROFILE))
|
||||||
|
|
||||||
|
CCFLAGS += -DJABYENGINE_$(TV_FORMAT)
|
||||||
|
|
||||||
#Linker flags
|
#Linker flags
|
||||||
LDFLAGS_release += -Os
|
LDFLAGS_release += -Os
|
||||||
|
|
||||||
|
|
|
@ -65,7 +65,7 @@
|
||||||
"C_Cpp.default.compilerArgs": [
|
"C_Cpp.default.compilerArgs": [
|
||||||
],
|
],
|
||||||
"C_Cpp.default.defines": [
|
"C_Cpp.default.defines": [
|
||||||
""
|
"JABYENGINE_PAL"
|
||||||
],
|
],
|
||||||
"files.exclude": {
|
"files.exclude": {
|
||||||
"**/*.o": true,
|
"**/*.o": true,
|
||||||
|
|
Loading…
Reference in New Issue