Add Ox to project

This commit is contained in:
Gary Talent 2016-12-24 00:41:57 -06:00
parent 4f3f6a742c
commit 6e1bec1dd0
3 changed files with 8 additions and 3 deletions

View File

@ -1,6 +1,7 @@
OS=$(shell uname | tr [:upper:] [:lower:])
HOST_ENV=${OS}-$(shell uname -m)
DEVENV=devenv$(shell pwd | sed 's/\//-/g')
DEVENV_IMAGE=wombatant/devenv
ifeq ($(shell docker inspect --format="{{.State.Status}}" ${DEVENV} 2>&1),running)
ENV_RUN=docker exec --user $(shell id -u ${USER}) ${DEVENV}
endif
@ -24,10 +25,11 @@ gdb: make
gdb ./build/current/src/wombat/wombat
devenv:
docker pull wombatant/devenv
docker pull ${DEVENV_IMAGE}
docker run -d -v $(shell pwd):/usr/src/project \
-e LOCAL_USER_ID=$(shell id -u ${USER}) \
--name ${DEVENV} -t wombatant/devenv bash
--restart=always --name ${DEVENV} \
-t ${DEVENV_IMAGE} bash
devenv-destroy:
docker rm -f ${DEVENV}

View File

@ -21,6 +21,9 @@ if(WOMBAT_BUILD_TYPE STREQUAL "Native")
elseif(WOMBAT_BUILD_TYPE STREQUAL "GBA")
endif()
find_package(Ox REQUIRED)
include_directories(${Ox_INCLUDE_DIRS})
set(LIBS ${LIBS} ${Ox_LIBRARY})
#project packages

View File

@ -5,8 +5,8 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
#include <ox/std/types.hpp>
#include "gfx.hpp"
#include "types.hpp"
namespace nostalgia {
namespace core {