Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initial Posix build #12

Merged
merged 34 commits into from Jan 20, 2018
Merged

Initial Posix build #12

merged 34 commits into from Jan 20, 2018

Conversation

marijnvdwerf
Copy link
Member

No description provided.

CMakeLists.txt Outdated

# Disable optimizations for interop.cpp for all compilers, to allow optimized
# builds without need for -fno-omit-frame-pointer
set_source_files_properties("${CMAKE_CURRENT_SOURCE_DIR}/src/openloco/interop/interop.cpp" PROPERTIES COMPILE_FLAGS -fno-omit-frame-pointer)

add_executable(${PROJECT} ${ORCT2_SOURCES} ${OLOCO_MM_SOURCES} ${LOCO_SECTIONS})
target_compile_definitions(${PROJECT} PRIVATE -D_OPENLOCO_USE_BOOST_FS_)
target_compile_definitions(${PROJECT} PRIVATE ${OPENLOCO_COMPILE_DEFINITIONS})
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be of _OPENLOCO_USE_BOOST_FS_=1 form

CMakeLists.txt Outdated
# include lib
include_directories("lib/")
# add source files
file(GLOB_RECURSE ORCT2_SOURCES "src/*.c" "src/*.cpp" "src/*.h" "src/*.hpp")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

drop *.c?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, ORCT2_SOURCES?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Victim of copy and paste

CMakeLists.txt Outdated
)
add_custom_command(
OUTPUT openloco_data
COMMAND dd if="${OLOCO_EXE}" of="${OLOCO_DATA}" bs=4096 skip=215 count=78
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@marijnvdwerf can you double-check these offsets?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

text start = 0x1000/4096 = 1
text size: 0xd6000/4096 = 214

rodata start: 0xd7000/4096 = 215
rodata+data size: (0x1f000+0x2f000)/4096 = 78

@marijnvdwerf
Copy link
Member Author

:shipit:

@marijnvdwerf marijnvdwerf merged commit d1bd9b4 into master Jan 20, 2018
@marijnvdwerf marijnvdwerf deleted the posix-build branch January 20, 2018 22:29
marijnvdwerf added a commit to marijnvdwerf/OpenLoco that referenced this pull request Feb 21, 2019
Prepare window list to vector refactor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants