Bug 1354 - Building scratch subdir programs is broken
parent
ff6665898c
commit
d833ac9e2c
|
@ -0,0 +1,27 @@
|
|||
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
|
||||
/*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License version 2 as
|
||||
* published by the Free Software Foundation;
|
||||
*
|
||||
* 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*/
|
||||
|
||||
#include "ns3/core-module.h"
|
||||
|
||||
NS_LOG_COMPONENT_DEFINE ("ScratchSimulator");
|
||||
|
||||
using namespace ns3;
|
||||
|
||||
int
|
||||
main (int argc, char *argv[])
|
||||
{
|
||||
NS_LOG_UNCOND ("Scratch Simulator");
|
||||
}
|
2
wscript
2
wscript
|
@ -625,7 +625,7 @@ def add_scratch_programs(bld):
|
|||
if os.path.isdir(os.path.join("scratch", filename)):
|
||||
obj = bld.create_ns3_program(filename, all_modules)
|
||||
obj.path = obj.path.find_dir('scratch').find_dir(filename)
|
||||
obj.find_sources_in_dirs('.')
|
||||
obj.source = obj.path.ant_glob('*.cc')
|
||||
obj.target = filename
|
||||
obj.name = obj.target
|
||||
obj.install_path = None
|
||||
|
|
Loading…
Reference in New Issue