mswin32.pl #1

  • //
  • p4perl/
  • r16.1/
  • hints/
  • mswin32.pl
  • View
  • Commits
  • Open Download .zip Download (670 B)
#
# Hints for Windows platforms.
# Updated for Perl 5.16 and later which are built with MinGW.
#
use Config;

if ( $Config{cc} =~ /gcc/i ) {
    # With MinGW
    $self->{CC} = "g++";
    $self->{LD} = "g++";
} else {
    # Alternatively, for pre-5.16 Perl which uses Visual Studio
    $self->{DEFINE} .= " /TP";
    # Make sure we're not linking with -debug on Windows as the linker chokes
    # (the Perforce API is assumed to not be a debug build).
    $self->{LDDLFLAGS} = $Config{ 'lddlflags' };
    $self->{LDDLFLAGS} =~ s/ -debug//g;
}

#
# Hint that our OS name is 'NT' rather than anything else
#
$self->{P4PERL_OS_HINT} = "NT";
$self->{P4PERL_OSVER_HINT} = "";
# Change User Description Committed
#1 21613 C. Thomas Tyler Populate -r -o -S //p4perl/r16.1.
//p4perl/main/hints/mswin32.pl
#1 21593 C. Thomas Tyler Populate -o //guest/perforce_software/p4perl/main/...
//p4perl/main/....
//guest/perforce_software/p4perl/main/hints/mswin32.pl
#3 21585 Robert Cowham Add a Powershell script to do the installation for P4Perl
Tested with Strawberry Perl 5.22 and 5.24 (both 32 and 64 bit versions).
#2 21578 Robert Cowham Fixes for Strawberry Perl 5.22/24
#1 15920 Matt Attaway Move p4perl files into the main directory
//guest/perforce_software/p4perl/hints/mswin32.pl
#2 11926 Robert Cowham Updated P4Perl to use MinGW.
Tested with ActiveState 5.20 and P4API 14.1
#review @pallen
#1 8486 Paul Allen Initial population of P4PERL

from:
   //depot/main/p4-perl/...@565514
   //depot/main/p4-doc/user/p4perlnotes.txt@565514