mirror of
https://github.com/reactos/reactos.git
synced 2026-09-15 22:32:18 +08:00
- Import the mingw startup library and customized it a little. _tmain() is now supported, compiling an application as unicode is now just a matter of setting the module attribute unicode="true" - Fixed .rbuild files to import all libraries neccessary - Various GUID header changes and hacks to get everything to build/link properly - Fixed the IShellView2 interface svn path=/trunk/; revision=23933
75 lines
1.7 KiB
C++
75 lines
1.7 KiB
C++
/*
|
|
* Copyright (C) 2005 Casper S. Hornstrup
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program; if not, write to the Free Software
|
|
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
*/
|
|
#include "pch.h"
|
|
#include <assert.h>
|
|
|
|
#include "rbuild.h"
|
|
|
|
using std::string;
|
|
using std::vector;
|
|
|
|
Define::Define ( const Project& project,
|
|
const XMLElement& defineNode )
|
|
: project(project),
|
|
module(NULL),
|
|
node(&defineNode)
|
|
{
|
|
Initialize();
|
|
}
|
|
|
|
Define::Define ( const Project& project,
|
|
const Module* module,
|
|
const XMLElement& defineNode )
|
|
: project(project),
|
|
module(module),
|
|
node(&defineNode)
|
|
{
|
|
Initialize();
|
|
}
|
|
|
|
Define::Define ( const Project& project,
|
|
const Module* module,
|
|
const std::string name_ )
|
|
: project(project),
|
|
module(module),
|
|
node(NULL)
|
|
{
|
|
name = name_;
|
|
value = "";
|
|
}
|
|
|
|
Define::~Define ()
|
|
{
|
|
}
|
|
|
|
void
|
|
Define::Initialize()
|
|
{
|
|
const XMLAttribute* att = node->GetAttribute ( "name", true );
|
|
const XMLAttribute* empty = node->GetAttribute ( "empty", false );
|
|
assert(att);
|
|
name = att->value;
|
|
value = node->value;
|
|
if( empty ) value = " ";
|
|
}
|
|
|
|
void
|
|
Define::ProcessXML()
|
|
{
|
|
}
|