Skip to content

Commit e8f3232

Browse files
committed
move pystub down to the executables
1 parent 2ac33f2 commit e8f3232

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+178
-528
lines changed

pandatool/src/bam/bamInfo.cxx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
#include "pvector.h"
3030
#include "bamCacheRecord.h"
3131
#include "bamCacheIndex.h"
32+
#include "pystub.h"
3233

3334
////////////////////////////////////////////////////////////////////
3435
// Function: BamInfo::Constructor
@@ -335,6 +336,9 @@ list_hierarchy(PandaNode *node, int indent_level) {
335336
}
336337

337338
int main(int argc, char *argv[]) {
339+
// A call to pystub() to force libpystub.so to be linked in.
340+
pystub();
341+
338342
BamInfo prog;
339343
prog.parse_command_line(argc, argv);
340344
prog.run();

pandatool/src/bam/bamToEgg.cxx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
#include "eggMaterial.h"
4646
#include "somethingToEggConverter.h"
4747
#include "dcast.h"
48+
#include "pystub.h"
4849

4950

5051
////////////////////////////////////////////////////////////////////
@@ -609,6 +610,9 @@ get_egg_texture(Texture *tex) {
609610

610611

611612
int main(int argc, char *argv[]) {
613+
// A call to pystub() to force libpystub.so to be linked in.
614+
pystub();
615+
612616
BamToEgg prog;
613617
prog.parse_command_line(argc, argv);
614618
prog.run();

pandatool/src/bam/eggToBam.cxx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
#include "load_prc_file.h"
3737
#include "windowProperties.h"
3838
#include "frameBufferProperties.h"
39+
#include "pystub.h"
3940

4041
////////////////////////////////////////////////////////////////////
4142
// Function: EggToBam::Constructor
@@ -461,6 +462,9 @@ make_buffer() {
461462

462463

463464
int main(int argc, char *argv[]) {
465+
// A call to pystub() to force libpystub.so to be linked in.
466+
pystub();
467+
464468
EggToBam prog;
465469
prog.parse_command_line(argc, argv);
466470
prog.run();

pandatool/src/cvscopy/testCopy.cxx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818

1919
#include "testCopy.h"
2020
#include "cvsSourceDirectory.h"
21+
#include "pystub.h"
2122

2223
////////////////////////////////////////////////////////////////////
2324
// Function: TestCopy::Constructor
@@ -69,6 +70,9 @@ copy_file(const Filename &source, const Filename &dest,
6970

7071

7172
int main(int argc, char *argv[]) {
73+
// A call to pystub() to force libpystub.so to be linked in.
74+
pystub();
75+
7276
TestCopy prog;
7377
prog.parse_command_line(argc, argv);
7478
prog.run();

pandatool/src/dxfprogs/dxfPoints.cxx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
////////////////////////////////////////////////////////////////////
1818

1919
#include "dxfPoints.h"
20+
#include "pystub.h"
2021

2122
////////////////////////////////////////////////////////////////////
2223
// Function: DXFPoints::Constructor
@@ -95,6 +96,9 @@ handle_args(ProgramBase::Args &args) {
9596

9697

9798
int main(int argc, char *argv[]) {
99+
// A call to pystub() to force libpystub.so to be linked in.
100+
pystub();
101+
98102
DXFPoints prog;
99103
prog.parse_command_line(argc, argv);
100104
prog.run();

pandatool/src/dxfprogs/dxfToEgg.cxx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
#include "dxfToEgg.h"
2020

2121
#include "dxfToEggConverter.h"
22+
#include "pystub.h"
2223

2324
////////////////////////////////////////////////////////////////////
2425
// Function: DXFToEgg::Constructor
@@ -75,6 +76,9 @@ run() {
7576

7677

7778
int main(int argc, char *argv[]) {
79+
// A call to pystub() to force libpystub.so to be linked in.
80+
pystub();
81+
7882
DXFToEgg prog;
7983
prog.parse_command_line(argc, argv);
8084
prog.run();

pandatool/src/dxfprogs/eggToDXF.cxx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
#include "eggToDXF.h"
2020
#include "eggPolygon.h"
2121
#include "dcast.h"
22+
#include "pystub.h"
2223

2324
////////////////////////////////////////////////////////////////////
2425
// Function: EggToDXF::Constructor
@@ -160,6 +161,9 @@ write_entities(ostream &out) {
160161

161162

162163
int main(int argc, char *argv[]) {
164+
// A call to pystub() to force libpystub.so to be linked in.
165+
pystub();
166+
163167
EggToDXF prog;
164168
prog.parse_command_line(argc, argv);
165169
prog.run();

pandatool/src/egg-mkfont/eggMakeFont.cxx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
#include "eggVertex.h"
3535
#include "string_utils.h"
3636
#include "dcast.h"
37+
#include "pystub.h"
3738

3839
#include <ctype.h>
3940

@@ -702,6 +703,9 @@ is_numeric(const string &str) {
702703
}
703704

704705
int main(int argc, char *argv[]) {
706+
// A call to pystub() to force libpystub.so to be linked in.
707+
pystub();
708+
705709
EggMakeFont prog;
706710
prog.parse_command_line(argc, argv);
707711
prog.run();

pandatool/src/egg-optchar/eggOptchar.cxx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
#include "pset.h"
3434
#include "compose_matrix.h"
3535
#include "fftCompressor.h"
36+
#include "pystub.h"
3637

3738
#include <algorithm>
3839

@@ -1347,6 +1348,9 @@ rename_primitives(EggGroupNode *egg_group, const string &name) {
13471348
}
13481349

13491350
int main(int argc, char *argv[]) {
1351+
// A call to pystub() to force libpystub.so to be linked in.
1352+
pystub();
1353+
13501354
EggOptchar prog;
13511355
prog.parse_command_line(argc, argv);
13521356
prog.run();

pandatool/src/egg-palettize/eggPalettize.cxx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
#include "pnotify.h"
2929
#include "notifyCategory.h"
3030
#include "notifySeverity.h"
31+
#include "pystub.h"
3132

3233
#include <stdio.h>
3334

@@ -858,6 +859,9 @@ run() {
858859

859860
int
860861
main(int argc, char *argv[]) {
862+
// A call to pystub() to force libpystub.so to be linked in.
863+
pystub();
864+
861865
EggPalettize prog;
862866
prog.parse_command_line(argc, argv);
863867
prog.run();

0 commit comments

Comments
 (0)