Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 60 lines (46 sloc) 1.342 kB
cbc99ba @typester initial commit
authored
1 use inc::Module::Install;
a3ce583 @typester implemented io watcher and timer
authored
2
3 assertos 'MacOSX';
4
cbc99ba @typester initial commit
authored
5 name 'Cocoa-EventLoop';
6 all_from 'lib/Cocoa/EventLoop.pm';
c14e4d8 @typester use readme_frompod
authored
7 readme_from 'lib/Cocoa/EventLoop.pm';
cbc99ba @typester initial commit
authored
8
a3ce583 @typester implemented io watcher and timer
authored
9 test_requires 'Test::More' => '0.88';
10 test_requires 'Test::TCP' => '1.11';
cbc99ba @typester initial commit
authored
11 author_tests('xt');
12
13 auto_set_repository;
14
a3ce583 @typester implemented io watcher and timer
authored
15 use_ppport '3.19';
16 cc_append_to_libs '-lobjc';
17
18 makemaker_args->{dynamic_lib} = {
19 OTHERLDFLAGS => '-framework Foundation',
20 };
21
22 {
23 # http://www.mail-archive.com/makemaker@perl.org/msg02823.html
24 # Add some required machinery to support .m files
25 package MY;
26 sub c_o {
27 my $inherited = shift->SUPER::c_o(@_);
28 $inherited .= <<'EOMESS';
29 .m$(OBJ_EXT):
30 $(CCCMD) $(CCCDLFLAGS) "-I$(PERL_INC)" $(PASTHRU_DEFINE) $(DEFINE) $*.m
31
32 EOMESS
33 $inherited;
34 }
35
36 sub xs_c {
37 my $inherited = shift->SUPER::xs_c(@_);
38 $inherited .= <<'EOMESS';
39 .xs.m:
40 $(XSUBPPRUN) $(XSPROTOARG) $(XSUBPPARGS) $(XSUBPP_EXTRA_ARGS) $*.xs > $*.xsm && $(MV) $*.xsm $*.m
41
42 EOMESS
43 $inherited;
44 }
45
46 sub init_dirscan {
47 my $self = shift;
48 $self->SUPER::init_dirscan;
49
50 foreach my $name ($self->lsdir($self->curdir)) {
51 next unless $name =~ /\.m$/;
52 push @{$self->{'C'}}, $name;
53 $name =~ s/\.m$/$self->{'OBJ_EXT'}/;
54 push @{$self->{'O_FILES'}}, $name;
55 }
56 }
57 }
58
cbc99ba @typester initial commit
authored
59 WriteAll;
Something went wrong with that request. Please try again.