Added wxWinCE project files and project file cleaner,
from "Viktor Voroshylo" <viktor@voroshylo.com> git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24713 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
423af76e39
commit
83e96c90f8
49
src/msw/wince/clean_vcp.py
Normal file
49
src/msw/wince/clean_vcp.py
Normal file
@ -0,0 +1,49 @@
|
||||
'''
|
||||
This script will delete dependences from *.vcp files.
|
||||
After using this script, next time when you will try to save project,
|
||||
you will have wait untill 'Visual Tools' will rebuild all dependencies
|
||||
and this process might take HUGE amount of time
|
||||
|
||||
Author : Viktor Voroshylo
|
||||
$Id$
|
||||
'''
|
||||
__version__='$Revision$'[11:-2]
|
||||
|
||||
import sys
|
||||
|
||||
if len(sys.argv) != 2 :
|
||||
print "Usage: %s project_file.vcp" % sys.argv[0]
|
||||
sys.exit(0)
|
||||
|
||||
vsp_filename = sys.argv[1]
|
||||
exclude_line = 0
|
||||
resultLines = []
|
||||
|
||||
vsp_file = open(vsp_filename, "r")
|
||||
empty_if_start = -1
|
||||
|
||||
line = vsp_file.readline()
|
||||
while line :
|
||||
skip_line = 0
|
||||
if exclude_line :
|
||||
if not line.endswith("\\\n") : exclude_line = 0
|
||||
skip_line = 1
|
||||
elif line.startswith("DEP_CPP_") or line.startswith("NODEP_CPP_") :
|
||||
exclude_line = 1
|
||||
skip_line = 1
|
||||
elif empty_if_start != -1 :
|
||||
if line == "!ENDIF \n" :
|
||||
resultLines = resultLines[:empty_if_start]
|
||||
empty_if_start = -1
|
||||
skip_line = 1
|
||||
elif line != "\n" and not line.startswith("!ELSEIF ") :
|
||||
empty_if_start = -1
|
||||
elif line.startswith("!IF ") :
|
||||
empty_if_start = len(resultLines)
|
||||
|
||||
if not skip_line :
|
||||
resultLines.append(line)
|
||||
|
||||
line = vsp_file.readline()
|
||||
|
||||
open(vsp_filename, "w").write("".join(resultLines))
|
2471
src/msw/wince/wxWindowsCE.vcp
Normal file
2471
src/msw/wince/wxWindowsCE.vcp
Normal file
File diff suppressed because it is too large
Load Diff
29
src/msw/wince/wxWindowsCE.vcw
Normal file
29
src/msw/wince/wxWindowsCE.vcw
Normal file
@ -0,0 +1,29 @@
|
||||
Microsoft eMbedded Visual Tools Workspace File, Format Version 3.00
|
||||
# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE!
|
||||
|
||||
###############################################################################
|
||||
|
||||
Project: "wxWindowsCE"=.\wxWindowsCE.vcp - Package Owner=<4>
|
||||
|
||||
Package=<5>
|
||||
{{{
|
||||
}}}
|
||||
|
||||
Package=<4>
|
||||
{{{
|
||||
}}}
|
||||
|
||||
###############################################################################
|
||||
|
||||
Global:
|
||||
|
||||
Package=<5>
|
||||
{{{
|
||||
}}}
|
||||
|
||||
Package=<3>
|
||||
{{{
|
||||
}}}
|
||||
|
||||
###############################################################################
|
||||
|
Loading…
Reference in New Issue
Block a user