Author Topic: Source  (Read 2362 times)

0 Members and 1 Guest are viewing this topic.

Where's the source of the cross platform build located anyway?

 

Offline The E

  • He's Ebeneezer Goode
  • Moderator
  • 213
  • Nothing personal, just tech support.
    • Steam
    • Twitter
What "cross-platform build"?
If I'm just aching this can't go on
I came from chasing dreams to feel alone
There must be changes, miss to feel strong
I really need lifе to touch me
--Evergrey, Where August Mourns

 

Offline blowfish

  • 211
  • Join the cult of KILL MY ROUTER!!!!!!!!!!1
For the most part, Linux and Mac builds use the same source code as the windows builds.  You might find the occasional additional file or library required for these platforms in the project file folders themselves.

 

Offline chief1983

  • Still lacks a custom title
  • Moderator
  • 212
  • ⬇️⬆️⬅️⬅️🅰➡️⬇️
    • Minecraft
    • Skype
    • Steam
    • Twitter
    • Fate of the Galaxy
Well if that's the case the source is still the same.  It's all in SVN.  There are instructions stickied in the SCP threads.
Fate of the Galaxy - Now Hiring!  Apply within | Diaspora | SCP Home | Collada Importer for PCS2
Karajorma's 'How to report bugs' | Mantis
#freespace | #scp-swc | #diaspora | #SCP | #hard-light on EsperNet

"You may not sell or otherwise commercially exploit the source or things you created based on the source." -- Excerpt from FSO license, for reference

Nuclear1:  Jesus Christ zack you're a little too hamyurger for HLP right now...
iamzack:  i dont have hamynerge i just want ptatoc hips D:
redsniper:  Platonic hips?!
iamzack:  lays

 
so which projects/makefiles are configured for which OS? And where does the code differ. I mean the entire registry, windows creation, OS access stuff has to differ SOMEwhere.

How do you build for the other platforms?

 

Offline chief1983

  • Still lacks a custom title
  • Moderator
  • 212
  • ⬇️⬆️⬅️⬅️🅰➡️⬇️
    • Minecraft
    • Skype
    • Steam
    • Twitter
    • Fate of the Galaxy
Well, Visual Studio is obviously for Windows :P

The Code::Blocks one is the one that threw me, seems it was originally set up for Linux but hasn't been maintained and probably needs to be updated or removed.

Xcode, again, obviously for OS X.

Linux building is done via the autotools files.  With a fresh checkout/export, run:

./autogen.sh [--enable-debug] [--enable-inferno]
make

Then you'll have fs2_open_[INF_][r, d] in your code folder.  Copy it out and run 'make clean' to clear the slate, or reconfigure it with autogen.sh.

Not sure what you mean about the 'entire registry'.  There are some files that are included in the Linux build process, and some that are only included in Windows, such as the audio files (taylor is cleaning that up though), the unix/win ini/registry stuff, etc.  That's controlled at the project include level I think, but there are also many #ifdef _WIN32 checks throughout the code, etc.  Just gotta look for it.
Fate of the Galaxy - Now Hiring!  Apply within | Diaspora | SCP Home | Collada Importer for PCS2
Karajorma's 'How to report bugs' | Mantis
#freespace | #scp-swc | #diaspora | #SCP | #hard-light on EsperNet

"You may not sell or otherwise commercially exploit the source or things you created based on the source." -- Excerpt from FSO license, for reference

Nuclear1:  Jesus Christ zack you're a little too hamyurger for HLP right now...
iamzack:  i dont have hamynerge i just want ptatoc hips D:
redsniper:  Platonic hips?!
iamzack:  lays

 

Offline The E

  • He's Ebeneezer Goode
  • Moderator
  • 213
  • Nothing personal, just tech support.
    • Steam
    • Twitter
Here's a hint: Take a look at \code\osapi\.
If I'm just aching this can't go on
I came from chasing dreams to feel alone
There must be changes, miss to feel strong
I really need lifе to touch me
--Evergrey, Where August Mourns

 

Offline Iss Mneur

  • 210
  • TODO:
That's controlled at the project include level I think, but there are also many #ifdef _WIN32 checks throughout the code, etc.  Just gotta look for it.

The symbol is SCP_UNIX not _WIN32, but yes, all code for all platforms is in the same code base.  As noted by The E, it is mostly contained to files in osapi.
"I love deadlines. I like the whooshing sound they make as they fly by." -Douglas Adams
wxLauncher 0.9.4 public beta (now with no config file editing for FRED) | wxLauncher 2.0 Request for Comments

 
That's all I wanted to know. Thanks.