<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
    <title></title>
  </head>
  <body text="#000000" bgcolor="#ffffff">
    On 01/20/2011 07:25 PM, Mathieu BERGOUNIOUX wrote:
    <blockquote
      cite="mid:AANLkTi=VKLbXsWZaJeNjcxkYB2WT_y7pq0Nv7WHNtreB@mail.gmail.com"
      type="cite">Hi all,<br>
      <br>
      I'm new to ScummVM, so expect to receive many questions from me in
      the next few weeks, not all of them very clever, as I'm also not
      very good with compilation processes (makefiles, etc.)<br>
      <br>
      Right now I've got 2 questions:<br>
      <br>
      1/ About "create_project"<br>
      <br>
      Does "create_project" (from the nightly build) base its project
      files generation solely on the "<a moz-do-not-send="true"
        href="http://module.mk">module.mk</a>" file present in the
      engine's folder?<br>
      In other words :<br>
      - If my <a moz-do-not-send="true" href="http://module.mk">module.mk</a>
      is right, will my Visual Studio Solution be created correctly?
      Where else does it pick information from?<br>
    </blockquote>
    <br>
    If you want an engine to get picked up by create_project, it must
    have a valid module.mk file and also you need to register it in the
    configure script. It's pretty easy to do that though, you should
    just look at the engine list in configure lines 78-115.<br>
    <br>
    <blockquote
      cite="mid:AANLkTi=VKLbXsWZaJeNjcxkYB2WT_y7pq0Nv7WHNtreB@mail.gmail.com"
      type="cite">- For example, does the engine folder HAVE to be in
      "../../engines" from the dist/msvc10 folder ? (I believe some of
      the relative paths are hard-coded in create_project)<br>
    </blockquote>
    <br>
    That is correct every engine has to be in the srcdir/engines folder.
    The folder name of the engine also needs to match the engine name
    you gave the engine in the configure script.<br>
    <br>
    <blockquote
      cite="mid:AANLkTi=VKLbXsWZaJeNjcxkYB2WT_y7pq0Nv7WHNtreB@mail.gmail.com"
      type="cite">
      <br>
      2/ About $srcdir<br>
      <br>
      I can see in most <a moz-do-not-send="true"
        href="http://module.mk">module.mk</a> that they include <a
        moz-do-not-send="true" href="http://rules.mk">rules.mk</a> using
      :    "include $(srcdir)/<a moz-do-not-send="true"
        href="http://rules.mk">rules.mk</a>".<br>
      Where is $rcdir defined? I take it it#s an environm,ent variable,
      but I'm not sure when and how it's defined.<br>
    </blockquote>
    <br>
    It is defined when running configure. The definition will get placed
    in the config.mk file which is created by configure and used in the
    Makefile based build system.<br>
    <br>
    // Johannes<br>
  </body>
</html>