-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Remove libHana submodule * Add CMakeLists and sources for glad * Rename glad/ -> imgui/glad/ * Add CMakeLists for imgui * Add CMakeLists for ruby * Remove bin directory * Add HANA CMake option to configure GDB support * Remove Makefiles * Update Visual Studio Code launch configuration with CMake target * Update .gitignore with CMake paths * Update README.md with CMake instructions * Add libHana to linguist-vendored in .gitattributes
- Loading branch information
1 parent
256fe76
commit f8ca741
Showing
22 changed files
with
8,259 additions
and
170 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
imgui/* linguist-vendored | ||
hana/* linguist-vendored |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +0,0 @@ | ||
[submodule "libHana"] | ||
path = libHana | ||
url = [email protected]:Ruenzuo/libHana.git | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
cmake_minimum_required(VERSION 3.10.2) | ||
project(ruby) | ||
|
||
option(HANA "Compile with GDB support") | ||
|
||
file(GLOB_RECURSE RUBY_INCLUDE inlude/*.hpp inlude/*.tcc) | ||
file(GLOB_RECURSE RUBY_SOURCES src/*.cpp) | ||
|
||
include_directories(include) | ||
|
||
add_subdirectory(imgui) | ||
|
||
add_executable(ruby ${RUBY_INCLUDE} ${RUBY_SOURCES}) | ||
target_link_libraries(ruby imgui) | ||
if (HANA) | ||
find_package(Threads) | ||
include_directories(hana/include) | ||
add_definitions(-DHANA) | ||
target_link_libraries(ruby ${CMAKE_CURRENT_SOURCE_DIR}/hana/libHana.a) | ||
target_link_libraries(ruby ${CMAKE_THREAD_LIBS_INIT}) | ||
endif(HANA) | ||
set_property(TARGET ruby PROPERTY CXX_STANDARD 17) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,119 @@ | ||
/* Code generated by cmd/cgo; DO NOT EDIT. */ | ||
|
||
/* package _/home/ruenzuo/GitHub/UnsafePointer/ruby/libHana */ | ||
|
||
|
||
#line 1 "cgo-builtin-export-prolog" | ||
|
||
#include <stddef.h> /* for ptrdiff_t below */ | ||
|
||
#ifndef GO_CGO_EXPORT_PROLOGUE_H | ||
#define GO_CGO_EXPORT_PROLOGUE_H | ||
|
||
#ifndef GO_CGO_GOSTRING_TYPEDEF | ||
typedef struct { const char *p; ptrdiff_t n; } _GoString_; | ||
#endif | ||
|
||
#endif | ||
|
||
/* Start of preamble from import "C" comments. */ | ||
|
||
|
||
#line 4 "DebugServer.go" | ||
|
||
|
||
typedef unsigned int* (*GlobalRegistersCallbackType)(); | ||
unsigned int* callGlobalRegistersCallback(GlobalRegistersCallbackType callback); | ||
typedef unsigned char* (*MemoryReadCallbackType)(unsigned int address, unsigned int length); | ||
unsigned char* callMemoryReadCallback(MemoryReadCallbackType callback, unsigned int address, unsigned int length); | ||
typedef void (*AddBreakpointCallbackType)(unsigned int address); | ||
void callAddBreakpointCallback(AddBreakpointCallbackType callback, unsigned int address); | ||
typedef void (*ContinueCallbackType)(); | ||
void callContinueCallback(ContinueCallbackType callback); | ||
typedef void (*AddLoadWatchpointCallbackType)(unsigned int address); | ||
void callAddLoadWatchpointCallback(AddLoadWatchpointCallbackType callback, unsigned int address); | ||
typedef void (*AddStoreWatchpointCallbackType)(unsigned int address); | ||
void callAddStoreWatchpointCallback(AddStoreWatchpointCallbackType callback, unsigned int address); | ||
typedef void (*RemoveBreakpointCallbackType)(unsigned int address); | ||
void callRemoveBreakpointCallback(RemoveBreakpointCallbackType callback, unsigned int address); | ||
typedef void (*RemoveLoadWatchpointCallbackType)(unsigned int address); | ||
void callRemoveLoadWatchpointCallback(RemoveLoadWatchpointCallbackType callback, unsigned int address); | ||
typedef void (*RemoveStoreWatchpointCallbackType)(unsigned int address); | ||
void callRemoveStoreWatchpointCallback(RemoveStoreWatchpointCallbackType callback, unsigned int address); | ||
|
||
#line 1 "cgo-generated-wrapper" | ||
|
||
|
||
/* End of preamble from import "C" comments. */ | ||
|
||
|
||
/* Start of boilerplate cgo prologue. */ | ||
#line 1 "cgo-gcc-export-header-prolog" | ||
|
||
#ifndef GO_CGO_PROLOGUE_H | ||
#define GO_CGO_PROLOGUE_H | ||
|
||
typedef signed char GoInt8; | ||
typedef unsigned char GoUint8; | ||
typedef short GoInt16; | ||
typedef unsigned short GoUint16; | ||
typedef int GoInt32; | ||
typedef unsigned int GoUint32; | ||
typedef long long GoInt64; | ||
typedef unsigned long long GoUint64; | ||
typedef GoInt64 GoInt; | ||
typedef GoUint64 GoUint; | ||
typedef __SIZE_TYPE__ GoUintptr; | ||
typedef float GoFloat32; | ||
typedef double GoFloat64; | ||
typedef float _Complex GoComplex64; | ||
typedef double _Complex GoComplex128; | ||
|
||
/* | ||
static assertion to make sure the file is being used on architecture | ||
at least with matching size of GoInt. | ||
*/ | ||
typedef char _check_for_64_bit_pointer_matching_GoInt[sizeof(void*)==64/8 ? 1:-1]; | ||
|
||
#ifndef GO_CGO_GOSTRING_TYPEDEF | ||
typedef _GoString_ GoString; | ||
#endif | ||
typedef void *GoMap; | ||
typedef void *GoChan; | ||
typedef struct { void *t; void *v; } GoInterface; | ||
typedef struct { void *data; GoInt len; GoInt cap; } GoSlice; | ||
|
||
#endif | ||
|
||
/* End of boilerplate cgo prologue. */ | ||
|
||
#ifdef __cplusplus | ||
extern "C" { | ||
#endif | ||
|
||
|
||
extern void SetGlobalRegistersCallback(GlobalRegistersCallbackType p0); | ||
|
||
extern void SetReadMemoryCallback(MemoryReadCallbackType p0); | ||
|
||
extern void SetAddBreakpointCallback(AddBreakpointCallbackType p0); | ||
|
||
extern void SetContinueCallback(ContinueCallbackType p0); | ||
|
||
extern void SetAddLoadWatchpointCallback(AddLoadWatchpointCallbackType p0); | ||
|
||
extern void SetAddStoreWatchpointCallback(AddStoreWatchpointCallbackType p0); | ||
|
||
extern void SetRemoveBreakpointCallback(RemoveBreakpointCallbackType p0); | ||
|
||
extern void SetRemoveLoadWatchpointCallback(RemoveLoadWatchpointCallbackType p0); | ||
|
||
extern void SetRemoveStoreWatchpointCallback(RemoveStoreWatchpointCallbackType p0); | ||
|
||
extern void NotifyStopped(); | ||
|
||
extern void StartDebugServer(GoUint p0); | ||
|
||
#ifdef __cplusplus | ||
} | ||
#endif |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
cmake_minimum_required(VERSION 3.10.2) | ||
project(imgui) | ||
|
||
file(GLOB_RECURSE IMGUI_INCLUDE inlude/*.h) | ||
file(GLOB_RECURSE IMGUI_SOURCES src/*.cpp) | ||
|
||
add_subdirectory(glad) | ||
|
||
find_package(SDL2 REQUIRED) | ||
include_directories(${SDL2_INCLUDE_DIRS}) | ||
|
||
add_library(imgui ${IMGUI_INCLUDE} ${IMGUI_SOURCES}) | ||
add_definitions(-DIMGUI_IMPL_OPENGL_LOADER_GLAD) | ||
target_include_directories(imgui PUBLIC include/) | ||
target_link_libraries(imgui ${SDL2_LIBRARIES}) | ||
target_link_libraries(imgui glad) |
Oops, something went wrong.