[Lldb-commits] [lldb] r366745 - Remove Xcode project remnants
Jonas Devlieghere via lldb-commits
lldb-commits at lists.llvm.org
Mon Jul 22 14:51:04 PDT 2019
Author: jdevlieghere
Date: Mon Jul 22 14:51:04 2019
New Revision: 366745
URL: http://llvm.org/viewvc/llvm-project?rev=366745&view=rev
Log:
Remove Xcode project remnants
Removed:
lldb/trunk/scripts/generate-vers.pl
Modified:
lldb/trunk/tools/debugserver/source/CMakeLists.txt
Removed: lldb/trunk/scripts/generate-vers.pl
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/scripts/generate-vers.pl?rev=366744&view=auto
==============================================================================
--- lldb/trunk/scripts/generate-vers.pl (original)
+++ lldb/trunk/scripts/generate-vers.pl (removed)
@@ -1,56 +0,0 @@
-#!/usr/bin/perl
-
-sub usage()
-{
- print "Usage: generate-vers.pl /path/toproject.pbxproj program_name";
- exit(0);
-}
-
-(scalar @ARGV == 2) or usage();
-
-open $pbxproj, $ARGV[0] or die "Couldn't open ".$ARGV[0];
-
-$lldb_version = None;
-$lldb_train = None;
-$lldb_revision = None;
-$lldb_version_string = None;
-
-$product_name = "lldb";
-
-while ($line = <$pbxproj>)
-{
- chomp ($line);
-
- if ($lldb_version == None &&
- $line =~ /CURRENT_PROJECT_VERSION = ([0-9]+).([0-9]+).([0-9]+)(.[0-9])?/)
- {
- $lldb_version = $1;
- $lldb_train = $2;
- $lldb_revision = $3;
- $lldb_patchlevel = $4;
-
- if ($lldb_patchlevel != None)
- {
- $lldb_version_string = $lldb_version.".".$lldb_train.".".$lldb_revision.".".$lldb_patchlevel;
- }
- else
- {
- $lldb_version_string = $lldb_version.".".$lldb_train.".".$lldb_revision;
- }
- }
-}
-
-if (!$product_name || !$lldb_version_string)
-{
- print "Couldn't get needed information from the .pbxproj";
- exit(-1);
-}
-
-$uppercase_name = uc $product_name;
-$lowercase_name = lc $product_name;
-
-close $pbxproj;
-
-$file_string = " const unsigned char ".$ARGV[1]."VersionString[] __attribute__ ((used)) = \"@(#)PROGRAM:".$uppercase_name." PROJECT:".$lowercase_name."-".$lldb_version_string."\" \"\\n\"; const double ".$ARGV[1]."VersionNumber __attribute__ ((used)) = (double)".$lldb_version.".".$lldb_train.";\n";
-
-print $file_string;
Modified: lldb/trunk/tools/debugserver/source/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/tools/debugserver/source/CMakeLists.txt?rev=366745&r1=366744&r2=366745&view=diff
==============================================================================
--- lldb/trunk/tools/debugserver/source/CMakeLists.txt (original)
+++ lldb/trunk/tools/debugserver/source/CMakeLists.txt Mon Jul 22 14:51:04 2019
@@ -140,14 +140,6 @@ add_custom_command(OUTPUT ${generated_ma
set(DEBUGSERVER_VERS_GENERATED_FILE ${CMAKE_CURRENT_BINARY_DIR}/debugserver_vers.c)
set_source_files_properties(${DEBUGSERVER_VERS_GENERATED_FILE} PROPERTIES GENERATED 1)
-add_custom_command(OUTPUT ${DEBUGSERVER_VERS_GENERATED_FILE}
- COMMAND ${LLDB_SOURCE_DIR}/scripts/generate-vers.pl
- ${LLDB_SOURCE_DIR}/lldb.xcodeproj/project.pbxproj debugserver
- > ${DEBUGSERVER_VERS_GENERATED_FILE}
- DEPENDS ${LLDB_SOURCE_DIR}/scripts/generate-vers.pl
- ${LLDB_SOURCE_DIR}/lldb.xcodeproj/project.pbxproj
- )
-
set(lldbDebugserverCommonSources
DNBArch.cpp
DNBBreakpoint.cpp
More information about the lldb-commits
mailing list