begin structure for realcore/realfile/snd libs
make the binary link to realcore
This commit is contained in:
parent
b747dd5e2e
commit
490c6b4b5d
|
@ -8,4 +8,6 @@ endif()
|
|||
include(${CMAKE_SOURCE_DIR}/cmake/Policies.cmake)
|
||||
project(ssxog LANGUAGES C CXX)
|
||||
|
||||
|
||||
add_subdirectory(src/libs)
|
||||
add_subdirectory(src/bx)
|
||||
|
|
|
@ -59,4 +59,4 @@ Note that the Ninja CMake generator does not work with the SCE SDK, and should n
|
|||
|
||||
# Documentation
|
||||
|
||||
[Style Guide](docs/styleguide.md)
|
||||
[Style Guide](docs/styleguide.md) - the style for the SSX codebase.
|
||||
|
|
|
@ -12,6 +12,7 @@ target_link_libraries(ssx
|
|||
#kernel
|
||||
|
||||
# Project libraries (by alias)
|
||||
REAL::core
|
||||
)
|
||||
|
||||
set_target_properties(ssx PROPERTIES
|
||||
|
|
|
@ -5,6 +5,4 @@
|
|||
int main(int argc, char** argv)
|
||||
{
|
||||
printf("meow\n");
|
||||
|
||||
void* a = nullptr;
|
||||
}
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
add_subdirectory(real)
|
||||
#add_subdirectory(snd)
|
|
@ -0,0 +1,4 @@
|
|||
# master cmakelists for REAL
|
||||
# brings in every lib tree
|
||||
|
||||
add_subdirectory(realcore)
|
|
@ -0,0 +1,15 @@
|
|||
#ifndef REAL_EACMEM_H
|
||||
#define REAL_EACMEM_H
|
||||
|
||||
#include <stddef.h>
|
||||
|
||||
// MB_... flags definition
|
||||
|
||||
// default
|
||||
#define MB_LOW 0x00
|
||||
//....
|
||||
|
||||
char* MEM_alloc(const char* tag, size_t size, int flags);
|
||||
void MEM_free(void* ptr);
|
||||
|
||||
#endif // REAL_EACMEM_H
|
|
@ -0,0 +1,14 @@
|
|||
|
||||
|
||||
add_library(realcore
|
||||
inittmr.cpp
|
||||
)
|
||||
|
||||
set_target_properties(realcore PROPERTIES
|
||||
CXX_STANDARD 98
|
||||
CXX_EXTENSIONS ON
|
||||
CXX_STANDARD_REQUIRED ON
|
||||
)
|
||||
|
||||
# alias target.
|
||||
add_library(REAL::core ALIAS realcore)
|
|
@ -0,0 +1,19 @@
|
|||
|
||||
#ifdef BX_PLATFORM_PS2
|
||||
|
||||
// called on intc
|
||||
static void tintchandler()
|
||||
{
|
||||
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
void inittimer(int hz)
|
||||
{
|
||||
#ifdef BX_PLATFORM_PS2
|
||||
|
||||
|
||||
#endif
|
||||
}
|
Loading…
Reference in New Issue