This Trac instance is not used for development anymore!

We migrated our development workflow to git and Gitea.
To test the future redirection, replace trac by ariadne in the page URL.

Changeset 10026 for ps


Ignore:
Timestamp:
08/17/11 18:17:22 (13 years ago)
Author:
philip
Message:

AoEO BAR compatibility in AoE3Ed

Location:
ps/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • ps/trunk/build/premake/extern_libs4.lua

    r9989 r10026  
    254254        end,
    255255    },
     256    devil = {
     257        compile_settings = function()
     258            if os.is("windows") then
     259                add_default_include_paths("devil")
     260            end
     261        end,
     262        link_settings = function()
     263            -- On Windows, it uses #pragma comment(lib ...) to link the library,
     264            -- so we only need to include the library-search-path
     265            if os.is("windows") then
     266                add_default_lib_paths("devil")
     267            end
     268            add_default_links({
     269                unix_names = { "IL", "ILU" },
     270            })
     271        end,
     272    },
    256273    enet = {
    257274        compile_settings = function()
  • ps/trunk/build/premake/premake4.lua

    r10018 r10026  
    808808    end
    809809
    810     setup_atlas_project("AtlasUI", "SharedLib", atlas_src,
    811     {   -- include
    812         "..",
    813         "CustomControls",
    814         "Misc"
    815     },{ -- extern_libs
     810    atlas_extern_libs = {
    816811        "boost",
    817812        "comsuppw",
     
    823818        "x11",
    824819        "zlib",
    825     },{ -- extra_params
     820    }
     821    if _OPTIONS["aoe3ed"] then
     822        table.insert(atlas_extern_libs, "devil")
     823    end
     824
     825    setup_atlas_project("AtlasUI", "SharedLib", atlas_src,
     826    {   -- include
     827        "..",
     828        "CustomControls",
     829        "Misc"
     830    },
     831    atlas_extern_libs,
     832    {   -- extra_params
    826833        pch_dir = rootdir.."/source/tools/atlas/AtlasUI/Misc/",
    827834        no_pch = (has_broken_pch),
     
    841848        },{ -- include
    842849        },{ -- extern_libs
     850            "devil",
    843851            "xerces",
    844852            "zlib"
  • ps/trunk/source/tools/atlas/DatafileIO/BAR/BAR.cpp

    r6910 r10026  
    1 /* Copyright (C) 2009 Wildfire Games.
     1/* Copyright (C) 2011 Wildfire Games.
    22 * This file is part of 0 A.D.
    33 *
     
    2323#include "Stream/Memory.h"
    2424
    25 //for :25 strncmp and :81 memset
    26 #include <string.h>
    27 
    2825#include <cassert>
     26#include <cstdio>
     27#include <cstring>
    2928
    3029using namespace DatafileIO;
     
    6564
    6665    m_Stream.Read(&unknown, 4);
    67     CHECK(unknown == 0);
     66    // 0 in AoE3
     67    // Non-zero (e.g. 466a800a, 8df1e438) in AoEO; purpose unknown
    6868
    6969    m_Stream.Seek(filetableOffset, Stream::FROM_START);
Note: See TracChangeset for help on using the changeset viewer.