Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Compile To DLL (on windows only)

Discussion in 'Assets and Asset Store' started by menneske, Jun 7, 2015.

  1. menneske

    menneske

    Joined:
    Jan 23, 2009
    Posts:
    44
    Hi,

    I just finished cleaning up an internal tool to make DLLs out of code source files. Its basically an custom editor window where you drag source files into a drop field and press a "compile" button.

    I'm looking for beta testers :)

    Unfortunately, it is only windows compatible.

    Drop me a PM or reply here if interested.
     
  2. imtrobin

    imtrobin

    Joined:
    Nov 30, 2009
    Posts:
    1,548
    How do you handle conditional compile in code?
     
  3. menneske

    menneske

    Joined:
    Jan 23, 2009
    Posts:
    44
    Hmm, well I don't really, the compiler does so I guess the DLL which comes out will be stuck with the conditionals at compile time.
     
  4. imtrobin

    imtrobin

    Joined:
    Nov 30, 2009
    Posts:
    1,548
    so if the code has define for different platform, then how do you handle it?
     
  5. menneske

    menneske

    Joined:
    Jan 23, 2009
    Posts:
    44
    If you have those in your code, you'll need to compile different dlls for the different target platforms.
     
  6. imtrobin

    imtrobin

    Joined:
    Nov 30, 2009
    Posts:
    1,548
    Yes I know. Do u make an easy way.
     
  7. menneske

    menneske

    Joined:
    Jan 23, 2009
    Posts:
    44
    No, currently you'll need to switch player target between each dll-build. To selectively include the dlls in players, just select them in unity and check the appropriate checkboxes in the inspector.
     
  8. imtrobin

    imtrobin

    Joined:
    Nov 30, 2009
    Posts:
    1,548
    It's not so simple. Some scripts need to certain # define, so if you don't handle it, then I don't see how this is can work beyond simple scripts. Back to Visual Studio