Repository navigation
Macintosh classic/carbon port #392
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
Open
RandoOnSteam
wants to merge
8
commits into
Bill-Gray:master
Choose a base branch
from
RandoOnSteam:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
77405d3
mac classic/carbon port
7b0b610
fix newlines in mac classic/carbon port (before I edited them on mac …
420e259
Merge branch 'master' of https://github.com/Bill-Gray/PDCursesMod
ff10f36
(Not finished addressing pull request yet)
c598270
----Mac fixes for tests-------
1d9b651
Fix an edge case where sometimes the 15 grow pixels are white instead…
50ade74
remove windows codewarrior project as requested
be3bc4e
Merge branch 'master' into master
GitMensch File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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,41 @@ | ||
| cmake_minimum_required(VERSION 3.11) | ||
|
|
||
| if(NOT CMAKE_BUILD_TYPE) | ||
| set(CMAKE_BUILD_TYPE "MinSizeRel" CACHE STRING "Choose the type of build, options are: Debug, Release, or MinSizeRel." FORCE) | ||
| message(STATUS "No build type specified, defaulting to MinSizeRel.") | ||
| endif() | ||
|
|
||
| PROJECT(mac VERSION "${PROJECT_VERSION}" LANGUAGES C) | ||
|
|
||
| INCLUDE(project_common) | ||
|
|
||
| target_include_directories(${PDCURSE_PROJ} PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/../common) | ||
|
|
||
| if(CMAKE_SYSTEM_NAME MATCHES "^Retro") | ||
| set(PDC_MAC_RESOURCES ${CMAKE_CURRENT_BINARY_DIR}/pdcurses.rsrc.bin) | ||
| set(PDC_MAC_REZ_INCLUDES ${REZ_INCLUDE_PATH}) | ||
| list(TRANSFORM PDC_MAC_REZ_INCLUDES PREPEND -I) | ||
| add_custom_command(OUTPUT ${PDC_MAC_RESOURCES} | ||
| COMMAND ${REZ} ${CMAKE_CURRENT_SOURCE_DIR}/pdcurses.r ${PDC_MAC_REZ_INCLUDES} -o ${PDC_MAC_RESOURCES} | ||
| DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/pdcurses.r) | ||
| add_custom_target(${PROJECT_NAME}_resources DEPENDS ${PDC_MAC_RESOURCES}) | ||
| endif() | ||
|
|
||
| demo_app(../demos calendar) | ||
| demo_app(../demos firework) | ||
| demo_app(../demos init_col) | ||
| demo_app(../demos mbrot) | ||
| demo_app(../demos newtest) | ||
| demo_app(../demos ozdemo) | ||
| demo_app(../demos picsview) | ||
| demo_app(../demos ptest) | ||
| demo_app(../demos rain) | ||
| demo_app(../demos speed) | ||
| demo_app(../demos test_pan) | ||
| demo_app(../demos testcurs) | ||
| demo_app(../demos version) | ||
| demo_app(../demos widetest) | ||
| demo_app(../demos worm) | ||
| demo_app(../demos xmas) | ||
|
|
||
| SET(CPACK_COMPONENTS_ALL applications) |
This file contains hidden or 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,92 @@ | ||
| PDCursesMod for Macintosh Classic/Carbon | ||
| ========================================= | ||
|
|
||
| This directory contains PDCursesMod source code files | ||
| specific to the Macintosh classic/carbon graphics mode | ||
| (Macintosh classic has no command line, so this is the only | ||
| mode there). This will work with System 7 and early OSX with | ||
| CarbonLib on either 68k or PowerPC. | ||
|
|
||
| Building | ||
| -------- | ||
|
|
||
| - You can cross-compile with Retro68 using CMake. This is | ||
| the main way to do it as you get a modern compiler with | ||
| modern optimizations. Some Linux distros have a package | ||
| for Retro68, but for those that don't there are a couple | ||
| options: | ||
|
|
||
| 1) The main Retro68 repo at https://github.com/autc04/Retro68/ | ||
| 2) Matthewdeaves's fork at https://github.com/matthewdeaves/Retro68 which includes a more hands-free setup script | ||
|
|
||
| - A CodeWarrior 8 file is included for native compilation | ||
| and debugging. The non-CMake options include: | ||
|
|
||
| pdcursescw8mac.sit - Macintosh CodeWarrior 8 (non-Pro) 68k project file | ||
|
|
||
| - Use Stuffit Expander to extract the native Macintosh CodeWarrior 8 | ||
| project. It is compressed to preserve its resources. | ||
|
|
||
| - The CodeWarrior project files include only the library itself. | ||
| If you want compile a demo, test, or your own application, | ||
| either add it as a target to the project or make your own | ||
| project file and add PDCursesMod as a library. | ||
|
|
||
| - If making an application include pdcurses.r or your own resource file. | ||
|
|
||
| - As mentioned above this port supports several architectures: | ||
|
|
||
| 68k - Builds for early Macintosh Classic non-PowerPC | ||
| PowerPC - Builds for Macintosh Classic PowerPC | ||
| FAT - Builds for Macintosh Classic 68k/PowerPC hybrid | ||
| Carbon - Builds for Macintosh Carbon 1.0 | ||
|
|
||
| - Carbon requires System 8+ with the CarbonLib extension on | ||
| Macintosh Classic or early PowerPC-based Mac OSX. | ||
|
|
||
| Retro68 CMake Information | ||
| ------------------------------ | ||
|
|
||
| Using Retro68 with CMake generally requires its own cmake | ||
| toolchain file. Typically you'd have this already set up. For | ||
| example if Retro68 was setup in /home/user/Retro68-build your | ||
| toolchain would look something like: | ||
|
|
||
| if(RETROPOWERPCOPT OR RETROCARBONOPT) | ||
| set(CMAKE_AR /home/user/Retro68-build/toolchain/bin/powerpc-apple-macos-ar) | ||
| set(CMAKE_RANLIB /home/user/Retro68-build/toolchain/bin/powerpc-apple-macos-ranlib) | ||
| set(CMAKE_LINKER /home/user/Retro68-build/toolchain/bin/powerpc-apple-macos-ld) | ||
| set(CMAKE_C_COMPILER /home/user/Retro68-build/toolchain/bin/powerpc-apple-macos-gcc) | ||
| set(CMAKE_CXX_COMPILER /home/user/Retro68-build/toolchain/bin/powerpc-apple-macos-g++) | ||
| if(RETROCARBONOPT) | ||
| set(CMAKE_EXE_LINKER_FLAGS_INIT "-carbon") | ||
| add_definitions(-DTARGET_API_MAC_CARBON=1) | ||
| set(CMAKE_SYSTEM_NAME RetroCarbon) | ||
| else() | ||
| set(CMAKE_SYSTEM_NAME RetroPPC) | ||
| endif() | ||
| else() | ||
| set(CMAKE_AR /home/user/Retro68-build/toolchain/bin/m68k-apple-macos-ar) | ||
| set(CMAKE_RANLIB /home/user/Retro68-build/toolchain/bin/m68k-apple-macos-ranlib) | ||
| set(CMAKE_LINKER /home/user/Retro68-build/toolchain/bin/m68k-apple-macos-ld) | ||
| set(CMAKE_C_COMPILER /home/user/Retro68-build/toolchain/bin/m68k-apple-macos-gcc) | ||
| set(CMAKE_CXX_COMPILER /home/user/Retro68-build/toolchain/bin/m68k-apple-macos-g++) | ||
| set(CMAKE_SYSTEM_NAME Retro68) | ||
| endif() | ||
|
|
||
| set(REZ /home/user/Retro68-build/toolchain/bin/Rez) | ||
|
|
||
| Once you have that set up you'd either pass it to the commandline or | ||
| add it to the cmake files via: | ||
|
|
||
| set(CMAKE_TOOLCHAIN_FILE ${CMAKE_SOURCE_DIR}/retro68-gcc-toolchain.cmake) | ||
|
|
||
| Distribution Status | ||
| ------------------- | ||
|
|
||
| The files in this directory are released to the Public Domain. | ||
|
|
||
| Acknowledgements | ||
| ---------------- | ||
|
|
||
| Structure based on the Win32 GUI port by Bill Gray. |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.